Skip to content

Commit c394a41

Browse files
committed
fix s3cfg creds
1 parent 1f7c41c commit c394a41

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/fatimage.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ jobs:
4646

4747
- name: Write s3cmd configuration
4848
run: |
49-
echo "${{ secrets['ARCUS_S3CFG'] }}" > ~/.s3cfg
49+
. venv/bin/activate
50+
S3_CREDS=$(openstack ec2 credentials create)
51+
echo "$S3_CREDS" > ~/.s3cfg
5052
shell: bash
5153

5254
- name: Install s3cmd
@@ -56,7 +58,7 @@ jobs:
5658
- name: Check for image in Arcus S3 bucket
5759
id: s3_ls
5860
run: |
59-
61+
. venv/bin/activate
6062
TARGET_IMAGE=$(jq --arg version "${{ matrix.build }}" -r '.cluster_image[$version]' "${{ env.IMAGE_PATH }}")
6163
echo "TARGET_IMAGE=${TARGET_IMAGE}" >> "$GITHUB_ENV"
6264
echo "target-image-${{ matrix.build }}=${TARGET_IMAGE}" >> "$GITHUB_OUTPUT"

0 commit comments

Comments
 (0)