mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-06-05 20:54:14 +00:00
Update docker.yml
This commit is contained in:
parent
1b022869f8
commit
70a6638063
1 changed files with 10 additions and 14 deletions
24
.github/workflows/docker.yml
vendored
24
.github/workflows/docker.yml
vendored
|
|
@ -21,32 +21,28 @@ jobs:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
|
|
||||||
- name: Docker meta
|
- name: Docker meta
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v6
|
uses: docker/metadata-action@v6
|
||||||
env:
|
env:
|
||||||
DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index
|
DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index
|
||||||
registry: ${{ env.CI_RETGISTRY }}
|
registry: "${{ env.CI_REGISTRY }}"
|
||||||
image: ${{ env.CI_IMAGE_NAME }}
|
image: "${{ env.CI_IMAGE_NAME }}"
|
||||||
with:
|
with:
|
||||||
images: |
|
images: |
|
||||||
${registry}/${image}
|
'$registry/$image'
|
||||||
flavor: |
|
|
||||||
latest=true
|
|
||||||
tags: |
|
tags: |
|
||||||
# set latest tag for default branch
|
# set latest tag for default branch
|
||||||
type=raw,value=latest,enable={{is_default_branch}}
|
#type=raw,value=lts,enable={{is_default_branch}}
|
||||||
# use custom value instead of git tag
|
# use custom value instead of git tag
|
||||||
type=semver,pattern=v{{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=v{{version}},value=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=tag
|
type=raw,event=tag
|
||||||
labels: |
|
labels: |
|
||||||
maintainer=${GITHUB_REPOSITORY_OWNER}
|
maintainer=${GITHUB_REPOSITORY_OWNER}
|
||||||
org.opencontainers.image.url=${registry}/${image}:
|
org.opencontainers.image.url=$registry/$image
|
||||||
org.opencontainers.image.created={{commit_date 'YYYY-MM-DDTHH:mm:ss.SSS[Z]'}}
|
org.opencontainers.image.created={{commit_date 'YYYY-MM-DDTHH:mm:ss.SSS[Z]'}}
|
||||||
|
|
||||||
# type=semver,pattern={{version}}
|
# type=semver,pattern={{version}}
|
||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
|
|
@ -59,9 +55,9 @@ jobs:
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
reg_url="${{ env.CI_REGISTRY }}"
|
echo "reg_url=${{ env.CI_REGISTRY }}"
|
||||||
reg_user="${{ vars.REG_USER }}"
|
echo "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 "${reg_user}" --password-stdin
|
||||||
|
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
uses: docker/build-push-action@v7
|
uses: docker/build-push-action@v7
|
||||||
|
|
@ -72,7 +68,7 @@ jobs:
|
||||||
# images: ${{ steps.meta.outputs.images }}:${{ steps.meta.outputs.tags }}
|
# images: ${{ steps.meta.outputs.images }}:${{ steps.meta.outputs.tags }}
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
annotations: ${{ steps.meta.outputs.annotations }}
|
# annotations: ${{ steps.meta.outputs.annotations }}
|
||||||
|
|
||||||
# uses: docker/login-action@v2
|
# uses: docker/login-action@v2
|
||||||
# with:
|
# with:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue