diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 5458e310..e3e777ed 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -4,6 +4,9 @@ permissions: contents: read packages: write +env: + IMAGE_NAME: "3x-ui" + on: workflow_dispatch: push: @@ -23,8 +26,10 @@ jobs: uses: docker/metadata-action@v6 with: images: | - hsanaeii/3x-ui - ghcr.io/mhsanaei/3x-ui + reg.vados.ru/${{ env.IMAGE_NAME }} +# ghcr.io/vados-dev/${{ env.IMAGE_NAME }} + flavor: | + latest=auto tags: | type=ref,event=branch type=ref,event=tag @@ -42,18 +47,26 @@ jobs: username: ${{ secrets.DOCKER_HUB_USERNAME }} password: ${{ secrets.DOCKER_HUB_TOKEN }} - - name: Login to GHCR + - 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 uses: docker/login-action@v4 with: registry: ghcr.io username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + password: ${{ github.token }} - name: Build and push Docker image uses: docker/build-push-action@v7 with: context: . 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 }} labels: ${{ steps.meta.outputs.labels }}