mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-06-06 05:04: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
|
# set latest tag for default branch
|
||||||
type=raw,value=latest,enable={{is_default_branch}}
|
type=raw,value=latest,enable={{is_default_branch}}
|
||||||
# use custom value instead of git tag
|
# 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
|
# use custom value and match part of it
|
||||||
type=semver,pattern={{version}},value=p1/v0.0.1,match=v(\d.\d.\d)$
|
type=semver,pattern=v{{version}},value=v0.0.1,match=v(\d.\d.\d)$
|
||||||
type=ref,event=branch
|
|
||||||
type=ref,event=tag
|
type=ref,event=tag
|
||||||
labels: |
|
labels: |
|
||||||
maintainer=${GITHUB_REPOSITORY_OWNER}
|
maintainer=${GITHUB_REPOSITORY_OWNER}
|
||||||
|
|
@ -60,8 +59,8 @@ jobs:
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
reg_url="$(echo "${{ env.CI_REGISTRY }}")"
|
reg_url="${{ env.CI_REGISTRY }}"
|
||||||
reg_user="$(echo "${{ vars.REG_USER }}")"
|
reg_user="${{ vars.REG_USER }}"
|
||||||
echo "${{ secrets.REG_PASS }}" | docker login $reg_url -u $user --password-stdin
|
echo "${{ secrets.REG_PASS }}" | docker login $reg_url -u $user --password-stdin
|
||||||
|
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue