Skip to content

Commit

Permalink
Stage and promote operator catalog and bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRealHaoLiu committed Oct 17, 2023
1 parent dd02225 commit f7be319
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/workflows/promote.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,20 @@ jobs:
- name: Re-tag and promote awx-operator image
run: |
# Promote operator image
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
# Promote bundle image
docker pull ghcr.io/${{ github.repository }}-bundle:v${{ github.event.release.tag_name }}
docker tag ghcr.io/${{ github.repository }}-bundle:v${{ github.event.release.tag_name }} quay.io/${{ github.repository }}-bundle:v${{ github.event.release.tag_name }}

Check failure on line 33 in .github/workflows/promote.yaml

View workflow job for this annotation

GitHub Actions / molecule (--skip-tags=replicas)

33:171 [line-length] line too long (176 > 170 characters)

Check failure on line 33 in .github/workflows/promote.yaml

View workflow job for this annotation

GitHub Actions / molecule (-t replicas)

33:171 [line-length] line too long (176 > 170 characters)
docker push quay.io/${{ github.repository }}-bundle:v${{ github.event.release.tag_name }}
# Promote catalog image
docker pull ghcr.io/${{ github.repository }}-catalog:v${{ github.event.release.tag_name }}
docker tag ghcr.io/${{ github.repository }}-catalog:v${{ github.event.release.tag_name }} quay.io/${{ github.repository }}-catalog:v${{ github.event.release.tag_name }}

Check failure on line 37 in .github/workflows/promote.yaml

View workflow job for this annotation

GitHub Actions / molecule (--skip-tags=replicas)

37:171 [line-length] line too long (178 > 170 characters)

Check failure on line 37 in .github/workflows/promote.yaml

View workflow job for this annotation

GitHub Actions / molecule (-t replicas)

37:171 [line-length] line too long (178 > 170 characters)
docker push quay.io/${{ github.repository }}-catalog:v${{ github.event.release.tag_name }}
- name: Release Helm chart
run: |
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ jobs:
BUILD_ARGS="--build-arg DEFAULT_AWX_VERSION=${{ github.event.inputs.default_awx_version }} \
--build-arg OPERATOR_VERSION=${{ github.event.inputs.version }}" \
IMAGE_TAG_BASE=ghcr.io/${{ github.repository_owner }}/awx-operator \
VERSION=${{ github.event.inputs.version }} make docker-build docker-push
VERSION=${{ github.event.inputs.version }} \
make docker-build docker-push bundle-build bundle-push catalog-build catalog-push
- name: Run test deployment
working-directory: awx-operator
Expand Down

0 comments on commit f7be319

Please sign in to comment.