mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-06-06 13:14:11 +00:00
Correct CI_REGISTRY variable and enhance login script
Fix typo in CI_REGISTRY variable and update login command.
This commit is contained in:
parent
1c08b76d14
commit
0932c60aa0
1 changed files with 4 additions and 2 deletions
6
.github/workflows/docker.yml
vendored
6
.github/workflows/docker.yml
vendored
|
|
@ -6,7 +6,7 @@ permissions:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
CI_IMAGE_NAME: "3x-ui"
|
CI_IMAGE_NAME: "3x-ui"
|
||||||
CI_RETGISTRY: "reg.vados.ru"
|
CI_REGISTRY: "reg.vados.ru"
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
@ -60,7 +60,9 @@ jobs:
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
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
|
- name: Build and push Docker image
|
||||||
uses: docker/build-push-action@v7
|
uses: docker/build-push-action@v7
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue