summaryrefslogtreecommitdiffstats
path: root/.github/workflows/promote.yml
diff options
context:
space:
mode:
authorShane McDonald <me@shanemcd.com>2021-11-19 03:22:45 +0100
committerShane McDonald <me@shanemcd.com>2021-11-19 03:22:45 +0100
commitef1563283ecc121d016bfc52f8c2adf4581b75d2 (patch)
tree82eb3bc6fc89e303a40f78f058f16259c305750c /.github/workflows/promote.yml
parentMerge pull request #11368 from shanemcd/downstream-changes (diff)
downloadawx-ef1563283ecc121d016bfc52f8c2adf4581b75d2.tar.xz
awx-ef1563283ecc121d016bfc52f8c2adf4581b75d2.zip
An automated stage / promotion release process
Diffstat (limited to '.github/workflows/promote.yml')
-rw-r--r--.github/workflows/promote.yml26
1 files changed, 26 insertions, 0 deletions
diff --git a/.github/workflows/promote.yml b/.github/workflows/promote.yml
new file mode 100644
index 0000000000..3955d7fcd7
--- /dev/null
+++ b/.github/workflows/promote.yml
@@ -0,0 +1,26 @@
+---
+name: Promote Release
+on:
+ release:
+ types: [published]
+
+jobs:
+ promote:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Log in to GHCR
+ run: |
+ echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin
+
+ - name: Log in to Quay
+ run: |
+ echo ${{ secrets.QUAY_TOKEN }} | docker login quay.io -u ${{ secrets.QUAY_USER }} --password-stdin
+
+ - name: Re-tag and promote awx image
+ run: |
+ docker pull ghcr.io/${{ github.repository }}:${{ github.event.release.tag_name }}
+ docker tag ghcr.io/${{ github.repository }}:${{ github.event.release.tag_name }} quay.io/${{ github.repository }}:${{ github.event.release.tag_name }}
+ docker tag ghcr.io/${{ github.repository }}:${{ github.event.release.tag_name }} quay.io/${{ github.repository }}:latest
+ docker push quay.io/${{ github.repository }}:${{ github.event.release.tag_name }}
+ docker push quay.io/${{ github.repository }}:latest
+