(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
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Login
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_USER }}
|
||||
password: ${{ secrets.DOCKER_PASSWD }}
|
||||
- name: Login to Docker Hub
|
||||
env:
|
||||
DOCKER_USER: ${{ secrets.DOCKER_USER }}
|
||||
DOCKER_PASSWD: ${{ 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
|
||||
run: |
|
||||
|
|
|
|||
Loading…
Reference in a new issue