Merge pull request #2255 from brave-intl/prod #962
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
on: | |
push: | |
branches: | |
- master | |
- dev | |
- prod | |
name: Generalized Deployments | |
jobs: | |
push: | |
name: Invoke General Docker Build Pipeline | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- name: Checkout | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@010d0da01d0b5a38af31e9c3470dbfdabdecca3a # v4.0.1 | |
with: | |
role-to-assume: ${{ secrets.GDBP_AWS_IAM_ROLE_ARN }} | |
aws-region: us-west-2 | |
- name: Override GITHUB_REF and thus ECR destination for master | |
run: echo "GITHUB_REF_OVERRIDE=refs/heads/dev" >> $GITHUB_ENV | |
if: ${{ github.ref == 'refs/heads/master' }} | |
- name: Generalized Deployments | |
uses: brave-intl/[email protected] |