ajustes novos
This commit is contained in:
parent
a083383121
commit
07984e4c18
1 changed files with 6 additions and 17 deletions
|
|
@ -10,7 +10,6 @@ env:
|
||||||
REGISTRY: pipe.gohorsejobs.com
|
REGISTRY: pipe.gohorsejobs.com
|
||||||
IMAGE_NAMESPACE: bohessefm
|
IMAGE_NAMESPACE: bohessefm
|
||||||
DOCKER_API_VERSION: "1.43"
|
DOCKER_API_VERSION: "1.43"
|
||||||
DOCKER_BUILDKIT: 1
|
|
||||||
DOCKER_MTU: 1200
|
DOCKER_MTU: 1200
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
@ -21,17 +20,10 @@ jobs:
|
||||||
shell: sh
|
shell: sh
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Ensure curl is installed (minimal)
|
- name: Install required tools (docker-cli + curl)
|
||||||
run: |
|
run: |
|
||||||
command -v curl >/dev/null 2>&1 || apk add --no-cache curl
|
apk add --no-cache docker-cli curl
|
||||||
|
docker version
|
||||||
- name: Install Docker Buildx (REQUIRED for BuildKit)
|
|
||||||
run: |
|
|
||||||
mkdir -p ~/.docker/cli-plugins
|
|
||||||
curl -L https://github.com/docker/buildx/releases/download/v0.13.1/docker-buildx-linux-amd64 \
|
|
||||||
-o ~/.docker/cli-plugins/docker-buildx
|
|
||||||
chmod +x ~/.docker/cli-plugins/docker-buildx
|
|
||||||
docker buildx version
|
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
@ -40,7 +32,6 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
echo "${{ secrets.FORGEJO_TOKEN }}" | docker login ${{ env.REGISTRY }} \
|
echo "${{ secrets.FORGEJO_TOKEN }}" | docker login ${{ env.REGISTRY }} \
|
||||||
-u ${{ env.IMAGE_NAMESPACE }} --password-stdin
|
-u ${{ env.IMAGE_NAMESPACE }} --password-stdin
|
||||||
docker info
|
|
||||||
|
|
||||||
- name: Build Backend
|
- name: Build Backend
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -76,16 +67,14 @@ jobs:
|
||||||
shell: sh
|
shell: sh
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Ensure curl is installed (minimal)
|
- name: Install tools (curl + kubectl)
|
||||||
run: |
|
|
||||||
command -v curl >/dev/null 2>&1 || apk add --no-cache curl
|
|
||||||
|
|
||||||
- name: Install kubectl
|
|
||||||
run: |
|
run: |
|
||||||
|
apk add --no-cache curl
|
||||||
K8S_VERSION=$(curl -s https://dl.k8s.io/release/stable.txt)
|
K8S_VERSION=$(curl -s https://dl.k8s.io/release/stable.txt)
|
||||||
curl -L -o /usr/local/bin/kubectl \
|
curl -L -o /usr/local/bin/kubectl \
|
||||||
https://dl.k8s.io/release/${K8S_VERSION}/bin/linux/amd64/kubectl
|
https://dl.k8s.io/release/${K8S_VERSION}/bin/linux/amd64/kubectl
|
||||||
chmod +x /usr/local/bin/kubectl
|
chmod +x /usr/local/bin/kubectl
|
||||||
|
kubectl version --client
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue