Updating test environment workflows #60
Workflow file for this run
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
# workflow to deploy kubernetes manifest to eks cluster using aws-eks-deploy action | |
name: Deploy to EKS | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: [ 'bootstrap' ] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Configure AWS Credentials For GitHub Actions | |
uses: aws-actions/configure-aws-credentials@v2 | |
with: | |
aws-region: us-east-1 | |
# AWS Access Key ID. This input is required if running in the GitHub hosted environment. It is optional if running in a self-hosted environment that already has AWS credentials, for example on an EC2 instance. | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
# AWS Secret Access Key. This input is required if running in the GitHub hosted environment. It is optional if running in a self-hosted environment that already has AWS credentials, for example on an EC2 instance. | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
- name: Set Cluster Context | |
run: aws eks --region us-east-1 update-kubeconfig --name ghest | |
- name: Helmfile Apply | |
run: helmfile init --force && helmfile repos && helmfile apply --set=authSecret.github_token=${{ secrets.PAT }} | |
working-directory: infra/helm/ |