Skip to content

Docker Push

Docker Push #3

Workflow file for this run

---
name: Docker Push
on: # yamllint disable-line rule:truthy
workflow_run:
workflows: ["Tag"]
types:
- completed
jobs:
build_and_push_prod:
name: Build & Push Image - Prod
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set output
id: vars
run: echo "git_tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
# configure iam
- name: Configure IAM Role
uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: ${{ secrets.PROD_BACKSTAGE_DEPLOY_ARN }}
aws-region: us-east-1
continue-on-error: false
- name: Build, Tag, and Push
run: |
export IMAGE_TAG=${{ steps.vars.outputs.git_tag }}
export ENVIRONMENT=prod
./scripts/docker-build-tag-and-push.sh