Skip to content

Commit 6ac9e8d

Browse files
committed
Update workflows
1 parent 87adef6 commit 6ac9e8d

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,19 +66,22 @@ jobs:
6666
steps:
6767
# Configure AWS
6868
- name: Configure AWS credentials
69-
uses: aws-actions/configure-aws-credentials@v1
69+
uses: aws-actions/configure-aws-credentials@v4
7070
with:
71-
aws-access-key-id: ${{ secrets.AC_ACCESS_KEY_ID }}
72-
aws-secret-access-key: ${{ secrets.AC_SECRET_ACCESS_KEY }}
73-
aws-region: ${{ secrets.GA_AWS_REGION }}
71+
aws-access-key-id: ${{ secrets.GA_DEPLOY_ACCESS_KEY_ID }}
72+
aws-secret-access-key: ${{ secrets.GA_DEPLOY_SECRET_ACCESS_KEY }}
73+
aws-region: us-east-1
74+
75+
- name: Login to Amazon ECR
76+
id: login-ecr
77+
uses: aws-actions/amazon-ecr-login@v1
7478

75-
# Restart cluster to download new content
76-
- name: Restart Cluster
77-
uses: actions-hub/kubectl@master
79+
- name: Rollout
80+
uses: kodermax/kubectl-aws-eks@main
7881
env:
79-
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG_DATA }}
82+
KUBE_CONFIG_DATA: ${{ secrets.KUBE_CONFIG_DATA }}
8083
with:
81-
args: "rollout restart -n graphacademy-prod deployment/graphacademy"
84+
args: rollout restart -n graphacademy-prod deployment/graphacademy
8285

8386
invalidate-cache:
8487
runs-on: ubuntu-latest

.github/workflows/rollout.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ jobs:
2121
- name: Rollout
2222
uses: kodermax/kubectl-aws-eks@main
2323
env:
24-
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
2524
KUBE_CONFIG_DATA: ${{ secrets.KUBE_CONFIG_DATA }}
26-
ECR_REPOSITORY: my-app
2725
with:
2826
args: rollout restart -n graphacademy-prod deployment/graphacademy

0 commit comments

Comments
 (0)