(fix): replace docker action
This commit is contained in:
parent
3aafa364ef
commit
fcaa7d1d44
1 changed files with 11 additions and 5 deletions
|
|
@ -33,11 +33,17 @@ jobs:
|
||||||
- name: Install docker
|
- name: Install docker
|
||||||
run: nix profile add nixpkgs#docker
|
run: nix profile add nixpkgs#docker
|
||||||
|
|
||||||
- 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