Build UID2 and EUID AMIs for Operator Release by @thomasm-ttd #16
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_run_number: | |
description: The Operator run number. Ignored if Release Number specified. | |
type: string | |
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 | |
with: | |
identity_scope: euid | |
operator_run_number: ${{ inputs.operator_run_number }} | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |