blob: 2955624d6ea3d779f44fb34241f8d04e65f35150 [file] [log] [blame]
Mohammed Naserbd5eaa12022-08-30 03:03:49 -04001name: promote
2on:
3 push:
4 branches:
5 - main
6
7jobs:
8 build-image-strategy:
9 runs-on: ubuntu-latest
10 steps:
11 - uses: actions/checkout@v3.0.2
12 - id: set-strategy
Mohammed Naser81d183d2022-08-30 03:14:11 -040013 run: echo "::set-output name=strategy::$(./ci/build-image-strategy promote)"
Mohammed Naserbd5eaa12022-08-30 03:03:49 -040014 outputs:
15 strategy: ${{ steps.set-strategy.outputs.strategy }}
16
17 promote-openstack-images:
18 runs-on: ubuntu-latest
19 needs:
20 - build-image-strategy
21 strategy: ${{ fromJSON(needs.build-image-strategy.outputs.strategy) }}
22 steps:
Mohammed Naser870332b2022-08-30 03:06:07 -040023 - uses: actions/checkout@v3.0.2
Mohammed Naserbd5eaa12022-08-30 03:03:49 -040024 - run: ./ci/openstack-image-build-env ${{ matrix.project }} ${{ matrix.release }} >> $GITHUB_ENV
25 - uses: docker/login-action@v2.0.0
26 with:
27 registry: quay.io
28 username: ${{ secrets.QUAY_USERNAME }}
29 password: ${{ secrets.QUAY_ROBOT_TOKEN }}
30 - uses: akhilerm/tag-push-action@v2.0.0
31 with:
32 src: quay.io/vexxhost/${{ matrix.project }}:${{ env.PROJECT_REF }}
33 dst: quay.io/vexxhost/${{ matrix.project }}:${{ matrix.release }}