mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-06-07 05:34:17 +00:00
Update docker.yml
This commit is contained in:
parent
72b5cb2090
commit
1c08b76d14
1 changed files with 18 additions and 6 deletions
24
.github/workflows/docker.yml
vendored
24
.github/workflows/docker.yml
vendored
|
|
@ -26,18 +26,29 @@ jobs:
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v6
|
uses: docker/metadata-action@v6
|
||||||
env:
|
env:
|
||||||
|
DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index
|
||||||
registry: ${{ env.CI_RETGISTRY }}
|
registry: ${{ env.CI_RETGISTRY }}
|
||||||
image: ${{ env.CI_IMAGE_NAME }}
|
image: ${{ env.CI_IMAGE_NAME }}
|
||||||
with:
|
with:
|
||||||
images: |
|
images: |
|
||||||
$registry/$image
|
${registry}/${image}
|
||||||
# ghcr.io/vados-dev/${{ env.IMAGE_NAME }}
|
|
||||||
flavor: |
|
flavor: |
|
||||||
latest=auto
|
latest=true
|
||||||
tags: |
|
tags: |
|
||||||
|
# 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
|
||||||
|
# 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=ref,event=branch
|
||||||
type=ref,event=tag
|
type=ref,event=tag
|
||||||
type=semver,pattern={{version}}
|
labels: |
|
||||||
|
maintainer=${GITHUB_REPOSITORY_OWNER}
|
||||||
|
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
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v4
|
uses: docker/setup-qemu-action@v4
|
||||||
|
|
@ -49,7 +60,7 @@ jobs:
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
echo ${{ secrets.REG_PASS }} | docker login ${{ env.CI_RETGISTRY }} -u {{ vars.REG_USER }} --password-stdin
|
echo ${{ secrets.REG_PASS }} | docker login ${{ env.CI_REGISTRY }} -u {{ vars.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
|
||||||
|
|
@ -57,9 +68,10 @@ jobs:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
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 }}
|
||||||
|
|
||||||
# uses: docker/login-action@v2
|
# uses: docker/login-action@v2
|
||||||
# with:
|
# with:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue