修复 workflow

This commit is contained in:
whyour 2023-02-12 17:08:47 +08:00
parent 76fa82c3a7
commit 8f7261dd50

View File

@ -3,6 +3,7 @@ name: Build And Push Docker Image
on: on:
push: push:
branches: branches:
- 'master'
- 'develop' - 'develop'
tags: tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
@ -84,6 +85,8 @@ jobs:
git push --force --quiet gitlab ${GITHUB_BRANCH}:${GITHUB_BRANCH} git push --force --quiet gitlab ${GITHUB_BRANCH}:${GITHUB_BRANCH}
build: build:
if: github.ref != 'refs/heads/master'
needs: build-static needs: build-static
runs-on: ubuntu-latest runs-on: ubuntu-latest