0.2.5 #4
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: deployment | |
on: | |
push: | |
branches: ["master"] | |
workflow_dispatch: | |
# inputs: | |
# environment: | |
# description: 'Environment' | |
# required: true | |
# type: choice | |
# options: | |
# - 'UAT' | |
# - 'PROD' | |
# default: 'UAT' | |
jobs: | |
build: | |
runs-on: ${{ vars.RUNNER_LABEL }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build static files for nginx container. | |
env: | |
BASE_URL: ${{ vars.BASE_URL }} | |
NODE_ENV: production | |
run: make build | |
deploy: | |
runs-on: ${{ vars.RUNNER_LABEL }} | |
needs: [ build ] | |
steps: | |
- name: Deploy Docker Container, recreate Container with fresh image. | |
env: | |
NODE_ENV: production | |
run: make run | |