feat: commit msg to force build
All checks were successful
push / build (push) Successful in 1m17s

This commit is contained in:
张泊明518370910136 2024-09-30 05:43:45 -04:00
parent 505fb393f4
commit a81c13449e
GPG Key ID: CA088E6D9284F870

View File

@ -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