From 540217e0f1bc633bdcd76622f24ea3be79e4fffe Mon Sep 17 00:00:00 2001 From: bertiethorpe <84867280+bertiethorpe@users.noreply.github.com> Date: Mon, 14 Oct 2024 12:01:50 +0100 Subject: [PATCH] Create s3-image-sync.yml --- .github/workflows/s3-image-sync.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/s3-image-sync.yml diff --git a/.github/workflows/s3-image-sync.yml b/.github/workflows/s3-image-sync.yml new file mode 100644 index 000000000..a7a681bb7 --- /dev/null +++ b/.github/workflows/s3-image-sync.yml @@ -0,0 +1,25 @@ +name: Upload CI-tested images to Arcus S3 and sync clouds +on: + workflow_dispatch: + push: + branches: + - main + paths: + - 'environments/.stackhpc/terraform/cluster_image.auto.tfvars.json' +env: + S3_BUCKET: openhpc-images-prerelease + IMAGE_PATH: environments/.stackhpc/terraform/cluster_image.auto.tfvars.json + +jobs: + s3_cleanup: + runs-on: ubuntu-22.04 + concurrency: ${{ github.workflow }}-${{ github.ref }} + strategy: + fail-fast: false + steps: + - uses: actions/checkout@v2 + + - name: Write s3cmd configuration + run: | + echo "${{ secrets['ARCUS_S3_CFG'] }}" > ~/.s3cfg + shell: bash