mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-06-05 12:44:22 +00:00
Fix semver pattern in Docker workflow
This commit is contained in:
parent
0932c60aa0
commit
1b022869f8
1 changed files with 4 additions and 5 deletions
9
.github/workflows/docker.yml
vendored
9
.github/workflows/docker.yml
vendored
|
|
@ -38,10 +38,9 @@ jobs:
|
|||
# set latest tag for default branch
|
||||
type=raw,value=latest,enable={{is_default_branch}}
|
||||
# use custom value instead of git tag
|
||||
type=semver,pattern={{version}},value=v0.0.1
|
||||
type=semver,pattern=v{{version}},value=v0.0.1
|
||||
# use custom value and match part of it
|
||||
type=semver,pattern={{version}},value=p1/v0.0.1,match=v(\d.\d.\d)$
|
||||
type=ref,event=branch
|
||||
type=semver,pattern=v{{version}},value=v0.0.1,match=v(\d.\d.\d)$
|
||||
type=ref,event=tag
|
||||
labels: |
|
||||
maintainer=${GITHUB_REPOSITORY_OWNER}
|
||||
|
|
@ -60,8 +59,8 @@ jobs:
|
|||
shell: bash
|
||||
run: |
|
||||
set -euo pipefail
|
||||
reg_url="$(echo "${{ env.CI_REGISTRY }}")"
|
||||
reg_user="$(echo "${{ vars.REG_USER }}")"
|
||||
reg_url="${{ env.CI_REGISTRY }}"
|
||||
reg_user="${{ vars.REG_USER }}"
|
||||
echo "${{ secrets.REG_PASS }}" | docker login $reg_url -u $user --password-stdin
|
||||
|
||||
- name: Build and push Docker image
|
||||
|
|
|
|||
Loading…
Reference in a new issue