diff --git a/.github/workflows/develop.yml b/.github/workflows/develop.yml index 3c59ade8df..dd83d6c80d 100644 --- a/.github/workflows/develop.yml +++ b/.github/workflows/develop.yml @@ -56,3 +56,20 @@ jobs: tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} + - + name: Configure kubectl + uses: azure/setup-kubectl@v3 + with: + version: 'latest' + + - + name: Configure Kubernetes credentials + uses: azure/k8s-set-context@v3 + with: + kubeconfig: ${{ secrets.KUBE_CONFIG }} + + - + name: Deploy to Kubernetes + run: | + # Atualiza a imagem do deployment no Kubernetes + kubectl set image deployment/mapasculturais mapas=docker.io/hacklab/mapasculturais:${{ steps.tag.outputs.tag }} --namespace=mapas-homolog \ No newline at end of file