Skip to content

Commit

Permalink
fix:修改版本号
Browse files Browse the repository at this point in the history
  • Loading branch information
leo committed Jun 23, 2024
1 parent 5601914 commit d159ede
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/ali-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Ali Docker Image CI
on:
push:
tags:
- 'va*'
- 'v*'
# 每次 push tag 时进行构建,不需要每次 push 都构建。使用通配符匹配每次 tag 的提交,记得 tag 名一定要以 v 开头

env:
Expand All @@ -19,12 +19,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
registry: ${{ env.DOCKERHUB_REGISTRY }}
username: ${{ env.DOCKERHUB_USER }}
password: ${{ env.DOCKERHUB_TOKEN }}
- uses: actions/checkout@v2
- name: Log into registry
run: echo "${{ env.DOCKERHUB_TOKEN }}" | docker login -r ${{ env.DOCKERHUB_REGISTRY }} -u ${{ env.DOCKERHUB_USER }} --password-stdin
- name: Get the version
id: vars
run: echo ::set-output name=tag::$(echo ${GITHUB_REF:10})
Expand Down

0 comments on commit d159ede

Please sign in to comment.