Modify Docker workflow for new registry and image name

Updated Docker workflow to use new image registry and environment variables.
This commit is contained in:
vados-dev 2026-05-15 21:32:55 +03:00 committed by GitHub
parent 7326f05685
commit 50a46a3a9d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,6 +4,9 @@ permissions:
contents: read contents: read
packages: write packages: write
env:
IMAGE_NAME: "3x-ui"
on: on:
workflow_dispatch: workflow_dispatch:
push: push:
@ -23,8 +26,10 @@ jobs:
uses: docker/metadata-action@v6 uses: docker/metadata-action@v6
with: with:
images: | images: |
hsanaeii/3x-ui reg.vados.ru/${{ env.IMAGE_NAME }}
ghcr.io/mhsanaei/3x-ui # ghcr.io/vados-dev/${{ env.IMAGE_NAME }}
flavor: |
latest=auto
tags: | tags: |
type=ref,event=branch type=ref,event=branch
type=ref,event=tag type=ref,event=tag
@ -42,18 +47,26 @@ jobs:
username: ${{ secrets.DOCKER_HUB_USERNAME }} username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }} password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Login to vados Registry
uses: docker/login-action@v4
with:
registry: reg.vados.ru
username: ${{ secrets.VADOS_REG_USERNAME }}
password: ${{ secrets.VADOS_REG_PASSWORD }}
- name: Log in to GHCR - name: Log in to GHCR
uses: docker/login-action@v4 uses: docker/login-action@v4
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ github.actor }} username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ github.token }}
- name: Build and push Docker image - name: Build and push Docker image
uses: docker/build-push-action@v7 uses: docker/build-push-action@v7
with: with:
context: . context: .
push: true push: true
platforms: linux/amd64,linux/arm64/v8,linux/arm/v7,linux/arm/v6,linux/386 platforms: linux/amd64
# ${{ 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 }}