Env Setup - Build forms server from main-5007(form.io tag v4.3.0) #10
Workflow file for this run
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: Env Setup - Build Forms Server | |
run-name: Env Setup - Build forms server from ${{ github.ref_name }}(form.io tag ${{ inputs.formioTag }}) | |
on: | |
workflow_dispatch: | |
inputs: | |
formioTag: | |
description: "Formio tag, please refer https://github.com/formio/formio/tags to deploy the appropriate tag." | |
type: string | |
required: true | |
default: "v4.3.0" | |
jobs: | |
build: | |
name: Build Forms Server | |
runs-on: ubuntu-latest | |
env: | |
BUILD_NAMESPACE: ${{ vars.BUILD_NAMESPACE }} | |
FORMIO_SOURCE_REPO_TAG: ${{ inputs.formioTag }} | |
steps: | |
- name: Install CLI tools from OpenShift Mirror | |
uses: redhat-actions/openshift-tools-installer@v1 | |
with: | |
oc: "4" | |
- name: Print env | |
run: | | |
echo BUILD NAMESPACE: $BUILD_NAMESPACE | |
echo BRANCH: $BUILD_REF | |
echo OC CLI Version: $(oc version) | |
# Checkout the PR branch | |
- name: Checkout Target Branch | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.ref_name }} | |
# Log in to OpenShift. | |
- name: Log in to OpenShift | |
run: | | |
oc login --token=${{ secrets.SA_TOKEN }} --server=${{ vars.OPENSHIFT_CLUSTER_URL }} | |
# Build Forms | |
- name: Build Forms server | |
working-directory: "./devops/" | |
run: | | |
make oc-build-forms |