(fix): docker login
This commit is contained in:
parent
e77ae0e1e4
commit
c39fb8753b
1 changed files with 9 additions and 5 deletions
|
|
@ -27,11 +27,15 @@ jobs:
|
||||||
- name: Set up repository
|
- name: Set up repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Login
|
- name: Login to Docker Hub
|
||||||
uses: docker/login-action@v3
|
env:
|
||||||
with:
|
DOCKER_USER: ${{ secrets.DOCKER_USER }}
|
||||||
username: ${{ secrets.DOCKER_USER }}
|
DOCKER_PASSWD: ${{ secrets.DOCKER_PASSWD }}
|
||||||
password: ${{ secrets.DOCKER_PASSWD }}
|
run: |
|
||||||
|
set -eu
|
||||||
|
DOCKER_USER="$(printf '%s' "$DOCKER_USER" | tr -d '\r\n')"
|
||||||
|
DOCKER_PASSWD="$(printf '%s' "$DOCKER_PASSWD" | tr -d '\r\n')"
|
||||||
|
printf '%s' "$DOCKER_PASSWD" | docker login docker.io --username "$DOCKER_USER" --password-stdin
|
||||||
|
|
||||||
- name: Build & Push
|
- name: Build & Push
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue