This commit is contained in:
Marcus 2026-01-31 12:39:22 -03:00
parent 293b019a5d
commit d863bbaa1e

View file

@ -15,6 +15,9 @@ jobs:
runs-on: docker-ready
steps:
- name: Install git
run: apk add --no-cache git
- name: Checkout code
uses: actions/checkout@v4
@ -28,7 +31,6 @@ jobs:
username: ${{ env.IMAGE_NAMESPACE }}
password: ${{ secrets.FORGEJO_TOKEN }}
# Backend
- name: Build and Push Backend
uses: docker/build-push-action@v5
with:
@ -40,7 +42,6 @@ jobs:
${{ env.REGISTRY }}/${{ env.IMAGE_NAMESPACE }}/gohorsejobs:${{ github.sha }}
${{ env.REGISTRY }}/${{ env.IMAGE_NAMESPACE }}/gohorsejobs:latest
# Backoffice
- name: Build and Push Backoffice
uses: docker/build-push-action@v5
with:
@ -57,9 +58,11 @@ jobs:
runs-on: docker-ready
steps:
- name: Install tools
run: apk add --no-cache git curl
- name: Install kubectl
run: |
apk add --no-cache curl
K8S_VERSION=$(curl -L -s https://dl.k8s.io/release/stable.txt)
curl -L -o /usr/local/bin/kubectl \
https://dl.k8s.io/release/${K8S_VERSION}/bin/linux/amd64/kubectl
@ -100,5 +103,3 @@ jobs:
kubectl -n gohorsejobsdev rollout restart deployment/gohorse-backend-dev
kubectl -n gohorsejobsdev rollout restart deployment/gohorse-backoffice-dev
echo "🚀 Deploy finalizado com sucesso!"