Setting docker workflow to run on internal arc #905
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build, push to AWS ECR, and deploy | |
on: | |
pull_request: | |
branches: | |
- main | |
env: | |
AWS_REGION: ca-central-1 | |
DOCKER_ORG: public.ecr.aws/v6b8u5o6 | |
DOCKER_SLUG: public.ecr.aws/v6b8u5o6/notify-api | |
KUBECTL_VERSION: '1.23.6' | |
permissions: | |
id-token: write # This is required for requesting the OIDC JWT | |
contents: read # This is required for actions/checkout | |
jobs: | |
deploy: | |
runs-on: github-arc-ss-api-dev | |
steps: | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@5fd3084fc36e372ff1fff382a39b10d03659f355 # v2.2.0 | |
id: awsconfig | |
with: | |
aws-access-key-id: ${{ secrets.STAGING_EKS_ACCESS_KEY }} | |
aws-secret-access-key: ${{ secrets.STAGING_EKS_SECRET_ACCESS_KEY }} | |
aws-region: ca-central-1 | |
- name: Checkout | |
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0 | |
with: | |
# Fetches entire history, so we can analyze commits since last tag | |
fetch-depth: 0 | |
- name: Setup helmfile | |
uses: mamezou-tech/[email protected] | |
with: | |
install-kubectl: yes | |
install-helm: yes | |
- name: Configure kubeconfig | |
run: | | |
aws eks update-kubeconfig --name notification-canada-ca-staging-eks-cluster |