Skip to content

Commit 3f3f925

Browse files
authored
Merge pull request #450 from stackhpc/stub/s3-sync
stub s3-image-sync workflow for easier ci
2 parents a7fbdaf + 540217e commit 3f3f925

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Upload CI-tested images to Arcus S3 and sync clouds
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- 'environments/.stackhpc/terraform/cluster_image.auto.tfvars.json'
9+
env:
10+
S3_BUCKET: openhpc-images-prerelease
11+
IMAGE_PATH: environments/.stackhpc/terraform/cluster_image.auto.tfvars.json
12+
13+
jobs:
14+
s3_cleanup:
15+
runs-on: ubuntu-22.04
16+
concurrency: ${{ github.workflow }}-${{ github.ref }}
17+
strategy:
18+
fail-fast: false
19+
steps:
20+
- uses: actions/checkout@v2
21+
22+
- name: Write s3cmd configuration
23+
run: |
24+
echo "${{ secrets['ARCUS_S3_CFG'] }}" > ~/.s3cfg
25+
shell: bash

0 commit comments

Comments
 (0)