mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-06-06 21:24:10 +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
|
||||
with:
|
||||
submodules: true
|
||||
|
||||
- name: Docker meta
|
||||
id: meta
|
||||
uses: docker/metadata-action@v6
|
||||
env:
|
||||
DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index
|
||||
registry: ${{ env.CI_RETGISTRY }}
|
||||
image: ${{ env.CI_IMAGE_NAME }}
|
||||
registry: "${{ env.CI_REGISTRY }}"
|
||||
image: "${{ env.CI_IMAGE_NAME }}"
|
||||
with:
|
||||
images: |
|
||||
${registry}/${image}
|
||||
flavor: |
|
||||
latest=true
|
||||
'$registry/$image'
|
||||
tags: |
|
||||
# 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
|
||||
type=semver,pattern=v{{version}},value=v0.0.1
|
||||
# use custom value and match part of it
|
||||
type=semver,pattern=v{{version}},value=v0.0.1,match=v(\d.\d.\d)$
|
||||
type=ref,event=tag
|
||||
type=raw,event=tag
|
||||
labels: |
|
||||
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]'}}
|
||||
|
||||
# type=semver,pattern={{version}}
|
||||
|
||||
- name: Set up QEMU
|
||||
|
|
@ -59,9 +55,9 @@ jobs:
|
|||
shell: bash
|
||||
run: |
|
||||
set -euo pipefail
|
||||
reg_url="${{ env.CI_REGISTRY }}"
|
||||
reg_user="${{ vars.REG_USER }}"
|
||||
echo "${{ secrets.REG_PASS }}" | docker login $reg_url -u $user --password-stdin
|
||||
echo "reg_url=${{ env.CI_REGISTRY }}"
|
||||
echo "reg_user=${{ vars.REG_USER }}"
|
||||
echo "${{ secrets.REG_PASS }}" | docker login "${reg_url}" -u "${reg_user}" --password-stdin
|
||||
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@v7
|
||||
|
|
@ -72,7 +68,7 @@ jobs:
|
|||
# images: ${{ steps.meta.outputs.images }}:${{ steps.meta.outputs.tags }}
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
annotations: ${{ steps.meta.outputs.annotations }}
|
||||
# annotations: ${{ steps.meta.outputs.annotations }}
|
||||
|
||||
# uses: docker/login-action@v2
|
||||
# with:
|
||||
|
|
|
|||
Loading…
Reference in a new issue