Merge pull request #947 from PintoGideon/Pacs-Preview-Fix #78
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
# Tags the current ImageStream in OpenShift for https://nightly.chrisproject.org, | |
# which triggers a deployment of https://past.chrisproject.org. This happens before | |
# nightly-chrisproject-org is done rebuilding so in effect, the outdated image of | |
# https://nightly.chrisproject.org is deployed to https://past.chrisproject.org | |
# | |
# Race condition: while it's technically possible for the OpenShift build | |
# for the ImageStram nightly-chrisproject-org:latest to finish before | |
# this Github Action, that's probably not going to happen. | |
# If it did, then https://past.chrisproject.org would be the same as https://nightly.chrisproject.org | |
name: Tag imagestream for past.chrisproject.org | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
advance-past-tag: | |
runs-on: ubuntu-latest | |
steps: | |
- name: oc login | |
uses: redhat-actions/oc-login@v1 | |
with: | |
openshift_server_url: "https://api.ocp-prod.massopen.cloud:6443" | |
openshift_token: "${{ secrets.MOC_SA_TOKEN }}" | |
namespace: chris-public | |
- name: Update ImageStream nightly-chrisproject-org:past | |
run: oc tag nightly-chrisproject-org:latest nightly-chrisproject-org:past |