mirror of
https://github.com/ansible/awx-operator.git
synced 2026-03-26 21:33:14 +00:00
44 lines
1.6 KiB
YAML
44 lines
1.6 KiB
YAML
---
|
|
name: Promote AWX Operator image
|
|
on:
|
|
release:
|
|
types: [published]
|
|
|
|
jobs:
|
|
promote:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
depth: 0
|
|
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
ref: gh-pages
|
|
path: gh-pages
|
|
|
|
- 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-operator 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
|
|
|
|
- name: Release Helm chart
|
|
run: |
|
|
ansible-playbook ansible/helm-release.yml -v \
|
|
-e operator_image=quay.io/${{ github.repository }} \
|
|
-e chart_owner=${{ github.repository_owner }} \
|
|
-e tag=${{ github.event.release.tag_name }} \
|
|
-e gh_token=${{ secrets.GITHUB_TOKEN }} \
|
|
-e gh_user=${{ github.actor }}
|