ci: fix docker login with --password-stdin
This commit is contained in:
parent
64d708762f
commit
8438fc3656
1 changed files with 11 additions and 3 deletions
|
|
@ -23,13 +23,21 @@ jobs:
|
|||
docker buildx inspect --bootstrap
|
||||
|
||||
- name: Login to Registry
|
||||
env:
|
||||
REGISTRY_HOSTPORT: ${{ secrets.REGISTRY_HOSTPORT }}
|
||||
REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }}
|
||||
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
run: |
|
||||
docker login ${{ secrets.REGISTRY_HOSTPORT }} -u ${{ secrets.REGISTRY_USERNAME }} -p ${{ secrets.REGISTRY_PASSWORD }}
|
||||
set -euo pipefail
|
||||
test -n "$REGISTRY_HOSTPORT"
|
||||
echo "$REGISTRY_PASSWORD" | docker login "$REGISTRY_HOSTPORT" -u "$REGISTRY_USERNAME" --password-stdin
|
||||
|
||||
- name: Build and push
|
||||
env:
|
||||
REGISTRY_HOSTPORT: ${{ secrets.REGISTRY_HOSTPORT }}
|
||||
run: |
|
||||
docker buildx build --push \
|
||||
-f Dockerfile \
|
||||
-t "${{ secrets.REGISTRY_HOSTPORT }}/nxtgauge-admin-solid:${{ gitea.sha }}" \
|
||||
-t "${{ secrets.REGISTRY_HOSTPORT }}/nxtgauge-admin-solid:high-performance-latest" \
|
||||
-t "$REGISTRY_HOSTPORT/nxtgauge-admin-solid:${{ gitea.sha }}" \
|
||||
-t "$REGISTRY_HOSTPORT/nxtgauge-admin-solid:high-performance-latest" \
|
||||
.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue