Skip to content

Commit

Permalink
update pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
nickkounz committed May 22, 2024
1 parent 300ad1c commit 5e5bb11
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/build-and-deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
name: Build Docker image and deploy it to Kubernetes cluster

on:
push:
branches:
- master

name: Build Docker image and deploy it to Kubernetes cluster
permissions:
id-token: write
contents: read

jobs:
deploy:
Expand All @@ -18,17 +22,17 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v2
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
role-to-assume: ${{ secrets.GA_OIDC_EKS_PROD }}
role-session-name: ChiefKeeper
aws-region: ${{ env.AWS_REGION }}

- name: Login to Docker Hub
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand All @@ -41,7 +45,7 @@ jobs:
docker push ${{ env.DOCKER_IMAGE_REGISTRY }}:${{ env.DOCKER_IMAGE_TAG }}
- name: Deploying app to Kubernetes with Helm
uses: bitovi/[email protected].4
uses: bitovi/[email protected].9
with:
values: image.repository=${{ env.DOCKER_IMAGE_REGISTRY }},image.tag=${{ env.DOCKER_IMAGE_TAG }}
cluster-name: ${{ env.CLUSTER_NAME }}
Expand Down

0 comments on commit 5e5bb11

Please sign in to comment.