File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed
Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change 1+ name : build-pipeline
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ build_args :
7+ description : " Arguments passed to build script."
8+ required : false
9+ working_directory :
10+ description : " Working directory from where the build command is run."
11+ required : false
12+
13+ env :
14+ BUILD_ARGS : ${{ secrets.BUILD_ARGS }}
15+ WORKING_DIRECTORY : ${{ secrets.WORKING_DIRECTORY }}
16+ ACTIONS_ALLOW_UNSECURE_COMMANDS : true # TODO: only needed until act supports the new way
17+
18+ jobs :
19+ build :
20+ runs-on : ubuntu-latest
21+ steps :
22+ - name : set-input-build-args
23+ if : ${{ github.event.inputs != null && github.event.inputs.build_args != null}}
24+ run : echo "::set-env name=BUILD_ARGS::${{ github.event.inputs.build_args }}"
25+ # new syntax: run: echo "BUILD_ARGS=${{ github.event.inputs.build_args }}" >> "$GITHUB_ENV"
26+ - name : set-input-working-directory
27+ if : ${{ github.event.inputs != null && github.event.inputs.working_directory != null}}
28+ run : echo "::set-env name=WORKING_DIRECTORY::${{ github.event.inputs.working_directory }}"
29+ # new syntax: run: echo "WORKING_DIRECTORY=${{ github.event.inputs.working_directory }}" >> "$GITHUB_ENV"
30+ - uses : actions/checkout@v2
31+ - name : set-host-ip
32+ run : echo "::set-env name=_HOST_IP::$(hostname -I | cut -d ' ' -f 1)"
33+ - name : run-build-scripts
34+ uses : ./.github/actions/build-environment
35+ with :
36+ build_args : ${{ env.BUILD_ARGS }}
37+ working_directory : ${{ env.WORKING_DIRECTORY }}
38+
39+ # GITHUB_TOKEN: ${{ secret.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments