Skip to content

Commit bb1ced2

Browse files
committed
simplify deployment for real
1 parent 9643914 commit bb1ced2

File tree

1 file changed

+3
-18
lines changed

1 file changed

+3
-18
lines changed

.github/workflows/build-and-deploy.yml

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -68,24 +68,9 @@ jobs:
6868
cache-from: type=registry,ref=${{ env.ECR_REGISTRY }}/${{ env.ECR_REPOSITORY }}:buildcache,image-manifest=true
6969
cache-to: type=registry,ref=${{ env.ECR_REGISTRY }}/${{ env.ECR_REPOSITORY }}:buildcache,mode=max,image-manifest=true
7070

71-
- name: Configure AWS Credentials
72-
uses: aws-actions/configure-aws-credentials@v3
73-
with:
74-
role-to-assume: ${{ secrets.OIDC_ROLE_ARN }}
75-
aws-region: ${{ env.AWS_REGION }}
76-
77-
78-
- name: DEBUG - Show Kubeconfig
79-
run: cat ~/.kube/config
80-
aws sts get-caller-identity
81-
kubectl version
82-
kubectl get pods -A
83-
8471

8572
- name: Deploy image
8673
run: |
87-
IMAGE=${{ env.ECR_REGISTRY }}/${{ env.ECR_REPOSITORY }}:${{ steps.meta.outputs.IMAGE_TAG }}
88-
# first-time apply (idempotent)
89-
kubectl apply -f infra/k8s/dev/deployment.yaml --validate=false
90-
# subsequent updates
91-
kubectl set image deployment/rimworld-hay-calc web=$IMAGE
74+
aws eks update-kubeconfig --name rimworld-hay-calc-dev --region ${{ env.AWS_REGION }}
75+
kubectl apply -f infra/k8s/dev/deployment.yaml
76+

0 commit comments

Comments
 (0)