-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#1959 - Staging sims prod environment : formio GitHub action build deploy split #2000
Changes from all commits
4d27744
a4fdac2
44ce0d6
4e77b09
b53e104
0347d46
5b0d5a9
4487c83
8d563a1
a5eb61d
c6b23e5
3a2a49b
9053a13
d65522e
3c462ea
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Env Setup - Build Forms Server | ||
run-name: Env Setup - Build forms server from ${{ inputs.gitRef }}(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: "v2.5.3" | ||
gitRef: | ||
description: "Git Ref" | ||
required: true | ||
default: "" | ||
|
||
jobs: | ||
build: | ||
name: Build Forms Server | ||
runs-on: ubuntu-latest | ||
env: | ||
FORMIO_SOURCE_REPO_TAG: ${{ inputs.formioTag }} | ||
BUILD_REF: ${{ inputs.formioTag }} | ||
BUILD_NAMESPACE: ${{ vars.BUILD_NAMESPACE }} | ||
steps: | ||
- name: Print env | ||
run: | | ||
echo BUILD NAMESPACE: $BUILD_NAMESPACE | ||
echo BRANCH: $BUILD_REF | ||
# Checkout the PR branch | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. period There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. line 39 too and comments in other files too. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will update it in my next pr |
||
- name: Checkout Target Branch | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ inputs.gitRef }} | ||
# 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why should we need the default as empty?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The git ref for build is the reference something like main-65, it does not have any default value.