Skip to content

Commit 70a4f39

Browse files
authored
Merge pull request #10 from pangolin-do-golang/cicd
chore: atualiza actions
2 parents 72c068e + ad17592 commit 70a4f39

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/BuildApp.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,16 @@ jobs:
9393
shell: bash
9494
run: aws eks update-kubeconfig --region us-east-1 --name development
9595

96-
- name: Cat kubeconfig
97-
run: cat ${HOME}/.kube/config
96+
- uses: actions-hub/kubectl@master
97+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
98+
env:
99+
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
100+
with:
101+
args: get pods
98102

99103
- uses: actions-hub/kubectl@master
100104
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
105+
env:
106+
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
101107
with:
102108
args: set image deployment/tech-challenge-deployment tech-challenge-container=ghcr.io/${{ github.repository }}:${{ steps.short-sha.outputs.sha }}

0 commit comments

Comments
 (0)