Skip to content

Commit

Permalink
Merge pull request #3 from MAVRICK-1/fix/docker-login-quay
Browse files Browse the repository at this point in the history
Refactor Docker login step to improve password handling and add debug…
  • Loading branch information
MAVRICK-1 authored Feb 4, 2025
2 parents 34cb6df + 5737d3f commit 03cafea
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/docker-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,20 @@ jobs:

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Log in to quay.io

- name: Debug Secrets
run: |
echo "Username: ${{ secrets.QUAY_USERNAME }}"
echo "Password length: ${#QUAY_PASSWORD}"
env:
QUAY_USERNAME: ${{ secrets.QUAY_USERNAME }}
QUAY_PASSWORD: ${{ secrets.QUAY_PASSWORD }}
run: echo $QUAY_PASSWORD | docker login quay.io -u $QUAY_USERNAME --password-stdin


- name: Login to Quay.io
run: |
printf "%s" "${{ secrets.QUAY_PASSWORD }}" | docker login quay.io -u "${{ secrets.QUAY_USERNAME }}" --password-stdin
- name: Get version (commit hash)
id: version
Expand Down

0 comments on commit 03cafea

Please sign in to comment.