Merge branch 'develop' into test #29
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Promote Endorsement Schedule image - test | |
on: | |
push: | |
branches: [test] | |
paths: | |
- "backend/**" | |
workflow_dispatch: | |
env: | |
ORIG_TAG: develop | |
PROMOTE_TAG: test | |
# This will terminate builds that are previously, but continuing to run. Saves GHA hours. | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
promote-image-to-test-silver: | |
name: WebAPI Backend Promote to test - Silver | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install oc | |
uses: redhat-actions/openshift-tools-installer@v1 | |
with: | |
oc: "4.7" | |
- name: oc login | |
run: | | |
oc login --token=${{ secrets.OPENSHIFT_GHA_SERVICE_ACCOUNT_TOKEN }} --server=${{ secrets.OPENSHIFT_CLUSTER_URL }} | |
- name: Promote webapi from dev to test | |
run: | | |
oc -n d8a8f9-tools tag \ | |
d8a8f9-tools/endorsement-reminder:${{ env.ORIG_TAG }} \ | |
d8a8f9-tools/endorsement-reminder:${{ env.PROMOTE_TAG }} | |
promote-image-to-test-gold: | |
name: WebAPI Backend Promote to test - Gold | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install oc | |
uses: redhat-actions/openshift-tools-installer@v1 | |
with: | |
oc: "4.9" | |
- name: oc login | |
run: | | |
oc login --token=${{ secrets.GOLD_PIPELINE_SERVICE_ACCOUNT_TOKEN }} --server=${{ secrets.GOLD_OPENSHIFT_CLUSTER_URL }} | |
- name: Promote webapi from dev to test | |
run: | | |
oc -n f088b1-tools tag \ | |
f088b1-tools/endorsement-reminder:${{ env.ORIG_TAG }} \ | |
f088b1-tools/endorsement-reminder:${{ env.PROMOTE_TAG }} |