From a81c13449e222c9e92c49c88e9388a772d387cae Mon Sep 17 00:00:00 2001 From: Boming Zhang Date: Mon, 30 Sep 2024 05:43:45 -0400 Subject: [PATCH] feat: commit msg to force build --- .gitea/workflows/push.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/push.yaml b/.gitea/workflows/push.yaml index 7f6b235..6855abe 100644 --- a/.gitea/workflows/push.yaml +++ b/.gitea/workflows/push.yaml @@ -27,8 +27,16 @@ jobs: go env -w GO111MODULE=on go env -w GOPROXY=https://goproxy.io,direct 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 - run: make force-build + run: ${{ env.build_command }} - name: Check images run: docker images - name: Push