This commit is contained in:
fit2-zhao 2020-12-03 19:40:09 +08:00
commit 1665a0f91a
1 changed files with 5 additions and 3 deletions

View File

@ -3,13 +3,15 @@ name: Build Docker Image and Push
on: on:
push: push:
branches: branches:
- main - master
- v1* - v1*
pull_request: pull_request:
branches: branches:
- main - master
- v1* - v1*
workflow_dispatch:
jobs: jobs:
build_push: build_push:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -55,4 +57,4 @@ jobs:
password: ${{ secrets.DOCKER_HUB_TOKEN }} password: ${{ secrets.DOCKER_HUB_TOKEN }}
repository: metersphere/metersphere repository: metersphere/metersphere
tag_with_ref: true tag_with_ref: true
build_args: MS_VERSION=${{ env.GITHUB_REF_SLUG }}-${{ env.GITHUB_SHA_SHORT }} build_args: MS_VERSION=${{ env.GITHUB_REF_SLUG }}-${{ env.GITHUB_SHA_SHORT }}