This commit is contained in:
parent
9f0626f1ec
commit
6fdeafbc0c
@ -24,6 +24,14 @@ jobs:
|
|||||||
- name: Checkout Code
|
- name: Checkout Code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Gen Tags
|
||||||
|
id: gen_tags
|
||||||
|
run: |
|
||||||
|
if [[ $GITHUB_REF == 'refs/tags/'* ]]; then
|
||||||
|
TAGS='["gitee.ltd/lxh/go-wxhelper:latest","gitee.ltd/lxh/go-wxhelper:'${GITHUB_REF/refs\/tags\//}'"]'
|
||||||
|
else
|
||||||
|
TAGS='["gitee.ltd/lxh/go-wxhelper:latest"]'
|
||||||
|
|
||||||
- name: Login to Repository
|
- name: Login to Repository
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
@ -35,6 +43,4 @@ jobs:
|
|||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: ${{ fromJson(steps.gen_tags.outputs.tags) }}
|
||||||
gitee.ltd/lxh/go-wxhelper:latest
|
|
||||||
gitee.ltd/lxh/go-wxhelper:v${{ github.run_number }}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user