Correct CI_REGISTRY variable and enhance login script

Fix typo in CI_REGISTRY variable and update login command.
This commit is contained in:
vados-dev 2026-05-16 02:07:36 +03:00 committed by GitHub
parent 1c08b76d14
commit 0932c60aa0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6,7 +6,7 @@ permissions:
env:
CI_IMAGE_NAME: "3x-ui"
CI_RETGISTRY: "reg.vados.ru"
CI_REGISTRY: "reg.vados.ru"
on:
workflow_dispatch:
@ -60,7 +60,9 @@ jobs:
shell: bash
run: |
set -euo pipefail
echo ${{ secrets.REG_PASS }} | docker login ${{ env.CI_REGISTRY }} -u {{ vars.REG_USER }} --password-stdin
reg_url="$(echo "${{ env.CI_REGISTRY }}")"
reg_user="$(echo "${{ vars.REG_USER }}")"
echo "${{ secrets.REG_PASS }}" | docker login $reg_url -u $user --password-stdin
- name: Build and push Docker image
uses: docker/build-push-action@v7