mirror of
https://github.com/ansible/awx-operator.git
synced 2026-03-26 21:33:14 +00:00
Use scripts from workflow branch
Previously it will use scripts from the release tag to do the release If we have to fix up the scripts for any reason we would have to retag This will allow us to modify the publishing script without having to retag the release.
This commit is contained in:
12
.github/workflows/publish-operator-hub.yaml
vendored
12
.github/workflows/publish-operator-hub.yaml
vendored
@@ -27,7 +27,6 @@ on:
|
||||
description: 'GitHub organization for community-operator-prod project. default: redhat-openshift-ecosystem'
|
||||
required: true
|
||||
default: 'redhat-openshift-ecosystem'
|
||||
|
||||
jobs:
|
||||
promote:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -46,6 +45,11 @@ jobs:
|
||||
run: |
|
||||
echo ${{ secrets.QUAY_TOKEN }} | docker login ${{github.event.inputs.image_registry}} -u ${{ secrets.QUAY_USER }} --password-stdin
|
||||
|
||||
- name: Checkout awx-operator at workflow branch
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
path: awx-operator
|
||||
|
||||
- name: Checkout awx-opearator at TAG_NAME
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
@@ -53,6 +57,12 @@ jobs:
|
||||
ref: ${{ env.TAG_NAME }}
|
||||
path: awx-operator-${{ env.TAG_NAME }}
|
||||
|
||||
- name: Copy scripts to awx-operator-${{ env.TAG_NAME }}
|
||||
run: |
|
||||
cp -f \
|
||||
awx-operator/hack/publish-to-operator-hub.sh \
|
||||
awx-operator-${{ env.TAG_NAME }}/hack/publish-to-operator-hub.sh
|
||||
|
||||
- name: Build and publish bundle to operator-hub
|
||||
working-directory: awx-operator-${{ env.TAG_NAME }}
|
||||
env:
|
||||
|
||||
@@ -121,12 +121,3 @@ gh pr create \
|
||||
--head $FORK:$BRANCH \
|
||||
--repo $COMMUNITY_OPERATOR_PROD_GITHUB_ORG/community-operators-prod
|
||||
popd
|
||||
|
||||
# # -- Print Links to Branches
|
||||
# echo "Commnity Operators: https://github.com/$FORK/community-operators/pull/new/$BRANCH"
|
||||
# echo "Commnity Operators Prod: https://github.com/$FORK/community-operators-prod/pull/new/$BRANCH"
|
||||
|
||||
# -- Cleanup
|
||||
# rm -rf community-operators
|
||||
# rm -rf community-operators-prod
|
||||
# rm -rf bundle
|
||||
|
||||
Reference in New Issue
Block a user