release #1
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: release | |
on: | |
workflow_dispatch: | |
inputs: | |
reason: | |
description: 'the reason for triggering this workflow' | |
required: false | |
default: 'manually publish the pre-built ecr images' | |
jobs: | |
ecr_images: | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
contents: read | |
env: | |
iam_role_to_assume: ${{ secrets.ROLE_ARN }} | |
steps: | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Configure AWS Credentials | |
if: ${{ env.iam_role_to_assume != '' }} | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
role-to-assume: ${{ env.iam_role_to_assume }} | |
aws-region: us-east-1 | |
- name: Build and Publish | |
run: |- | |
cd scripts | |
bash push-to-ecr.sh |