Skip to content

Use long flags

Use long flags #62

Workflow file for this run

name: Continuous Deployment to Openshift
on:
push:
branches:
- master
env:
IMAGE_NAME: website_frontend2
IMAGE_TAGS: latest
jobs:
CD:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install CLI tools from OpenShift Mirror
uses: redhat-actions/openshift-tools-installer@v1
with:
oc: '4.13'
- name: Authenticate and set context
uses: redhat-actions/oc-login@v1
with:
openshift_server_url: ${{ secrets.OKD4_HOST }}
openshift_token: ${{ secrets.OKD4_TOKEN }}
namespace: 'verseghy-website-beta'
- name: Buildah Build
id: build
uses: redhat-actions/buildah-build@v2
with:
image: ${{ env.IMAGE_NAME }}
tags: ${{ env.IMAGE_TAGS }}
containerfiles: |
./Containerfile
oci: true
- name: Push To GHCR
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.build.outputs.image }}
tags: ${{ steps.build.outputs.tags }}
registry: docker://ghcr.io/verseghy
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Restart deployment
shell: bash
run: |
oc rollout restart deployment website-frontend2