Build UID2 and EUID AMIs for Operator Release v5.32.16 by @cYKatherine #24
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
name: Build UID2 and EUID AMIs | |
run-name: Build UID2 and EUID AMIs for Operator Release ${{ inputs.operator_release }} by @${{ github.actor }} | |
on: | |
workflow_dispatch: | |
inputs: | |
operator_release: | |
description: The Operator Release number that built the EIF files to use | |
type: string | |
operator_run_number: | |
description: The Operator run number. Ignored if Release Number specified. | |
type: string | |
operator_branch: | |
description: The branch of Operator to use. | |
type: string | |
default: main | |
save_ami: | |
description: Save the AMIs as a build artifact. | |
type: boolean | |
required: false | |
default: false | |
jobs: | |
buildUID2: | |
name: UID2 Operator AMI | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
outputs: | |
version_number: ${{ steps.buildAMI.outputs.version_number }} | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Pre-cleanup | |
shell: bash | |
working-directory: ${{ github.workspace }} | |
run: | | |
echo "Cleaning up previous run" | |
sudo rm -rf * || true | |
docker stop $(docker ps -aq) || true | |
docker rm $(docker ps -aq) || true | |
docker rmi $(docker images -q) || true | |
- name: Build UID2 Operator AMI | |
id: buildAMI | |
uses: ./.github/actions/build_ami@kcc-UID2-3366-build-ami-in-operator-repo | |
with: | |
identity_scope: uid2 | |
eif_repo_owner: ${{ env.REPO_OWNER }} | |
eif_repo_name: ${{ env.REPO_NAME }} | |
eif_repo_token: ${{ secrets.TEST_PAT }} | |
operator_release: ${{ inputs.operator_release }} | |
operator_run_number: ${{ inputs.operator_run_number }} | |
operator_branch: ${{ inputs.operator_branch }} | |
save_ami: ${{ inputs.save_ami }} |