ajustes
This commit is contained in:
parent
293b019a5d
commit
d863bbaa1e
1 changed files with 6 additions and 5 deletions
|
|
@ -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!"
|
||||
|
|
|
|||
Loading…
Reference in a new issue