Skip to content

Merge pull request #913 from PintoGideon/master #56

Merge pull request #913 from PintoGideon/master

Merge pull request #913 from PintoGideon/master #56

Workflow file for this run

# 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