Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRealHaoLiu committed Oct 25, 2023
1 parent 1c89044 commit ed00daf
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 27 deletions.
39 changes: 21 additions & 18 deletions .github/workflows/publish-operator-hub.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -46,21 +45,25 @@ jobs:
run: |
echo ${{ secrets.QUAY_TOKEN }} | docker login ${{github.event.inputs.image_registry}} -u ${{ secrets.QUAY_USER }} --password-stdin
- name: Checkout awx-opearator at TAG_NAME
uses: actions/checkout@v4
with:
fetch-tags: true
ref: ${{ env.TAG_NAME }}
path: awx-operator-${{ env.TAG_NAME }}

- name: Build and publish bundle to operator-hub
working-directory: awx-operator-${{ env.TAG_NAME }}
env:
IMG_REPOSITORY: ${{ github.event.inputs.image_registry }}/${{ github.event.inputs.image_registry_organization }}
GITHUB_TOKEN: ${{ secrets.AWX_AUTO_GITHUB_TOKEN }}
COMMUNITY_OPERATOR_GITHUB_ORG: ${{ github.event.inputs.community_operator_github_org }}
COMMUNITY_OPERATOR_PROD_GITHUB_ORG: ${{ github.event.inputs.community_operator_prod_github_org }}
- name: debug
run: |
git config --global user.email "[email protected]"
git config --global user.name "AWX Automation"
./hack/publish-to-operator-hub.sh
ls -la
pwd
# - name: Checkout awx-opearator at TAG_NAME
# uses: actions/checkout@v4
# with:
# fetch-tags: true
# ref: ${{ env.TAG_NAME }}
# path: awx-operator-${{ env.TAG_NAME }}

# - name: Build and publish bundle to operator-hub
# working-directory: awx-operator-${{ env.TAG_NAME }}
# env:
# IMG_REPOSITORY: ${{ github.event.inputs.image_registry }}/${{ github.event.inputs.image_registry_organization }}
# GITHUB_TOKEN: ${{ secrets.AWX_AUTO_GITHUB_TOKEN }}
# COMMUNITY_OPERATOR_GITHUB_ORG: ${{ github.event.inputs.community_operator_github_org }}
# COMMUNITY_OPERATOR_PROD_GITHUB_ORG: ${{ github.event.inputs.community_operator_prod_github_org }}
# run: |
# git config --global user.email "[email protected]"
# git config --global user.name "AWX Automation"
# ./hack/publish-to-operator-hub.sh
9 changes: 0 additions & 9 deletions hack/publish-to-operator-hub.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ed00daf

Please sign in to comment.