Skip to content

spa-env-server deploy to test #3

spa-env-server deploy to test

spa-env-server deploy to test #3

name: spa-env-server deploy to test
on:
workflow_dispatch:
defaults:
run:
working-directory: ./
env:
NAMESPACE: f0463d-tools
IMAGE_NAME: spa-env-server
SOURCE_IMAGE_TAG: dev
TARGET_IMAGE_TAG: test
jobs:
ocp-integration:
runs-on: ubuntu-latest
steps:
- uses: redhat-actions/openshift-tools-installer@v1
with:
source: "mirror"
oc: "latest"
- name: Log in to Openshift
run: oc login --token=${{ secrets.OpenShiftToken }} --server=${{ secrets.OpenShiftServerURL}}
- name: Deploy to Test
run: oc tag -n ${NAMESPACE} ${NAMESPACE}/${IMAGE_NAME}:${SOURCE_IMAGE_TAG} ${NAMESPACE}/${IMAGE_NAME}:${TARGET_IMAGE_TAG}