Skip to content

test upload images commit #6

test upload images commit

test upload images commit #6

name: Upload release images to client sites from s3
on:
workflow_dispatch:
push:
branches:
- main
- master
- feat/fatimage-auto-upload
jobs:
image_upload:
runs-on: ubuntu-22.04
concurrency: ${{ github.ref }}
env:
OS_CLOUD: openstack
CI_CLOUD: ${{ vars.CI_CLOUD }}
steps:
- uses: actions/checkout@v2
- name: Record which cloud CI is running on
run: |
echo CI_CLOUD: ${{ vars.CI_CLOUD }}
- name: Write clouds.yaml
run: |
mkdir -p ~/.config/openstack/
echo "${{ secrets[format('{0}_CLOUDS_YAML', vars.CI_CLOUD)] }}" > ~/.config/openstack/clouds.yaml
shell: bash
- name: Write s3cmd configuration
run: |
echo "${{ secrets['ARCUS_S3CFG'] }}" > ~/.s3cfg
shell: bash
- name: Install s3cmd
run: |
sudo apt-get --yes install s3cmd
- name: Upload latest image if missing
run: |
. dev/setup-env.sh
. .github/bin/get-s3-image.sh