This commit is contained in:
parent
505fb393f4
commit
a81c13449e
|
@ -27,8 +27,16 @@ jobs:
|
||||||
go env -w GO111MODULE=on
|
go env -w GO111MODULE=on
|
||||||
go env -w GOPROXY=https://goproxy.io,direct
|
go env -w GOPROXY=https://goproxy.io,direct
|
||||||
chown -R root:root /root/.ssh
|
chown -R root:root /root/.ssh
|
||||||
|
- name: Determine build command
|
||||||
|
id: build_command
|
||||||
|
run: |
|
||||||
|
if [[ "${{ github.event.head_commit.message }}" == *"force build"* ]]; then
|
||||||
|
echo "build_command=make force-build" >> $GITHUB_ENV
|
||||||
|
else
|
||||||
|
echo "build_command=make build" >> $GITHUB_ENV
|
||||||
|
fi
|
||||||
- name: Build
|
- name: Build
|
||||||
run: make force-build
|
run: ${{ env.build_command }}
|
||||||
- name: Check images
|
- name: Check images
|
||||||
run: docker images
|
run: docker images
|
||||||
- name: Push
|
- name: Push
|
||||||
|
|
Loading…
Reference in New Issue
Block a user