Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandhya1874 committed Oct 7, 2024
1 parent d34d110 commit f0ccf6a
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/test_docker_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,20 @@ jobs:
version=$(date '+%Y-%m-%d').${{ github.run_number }}.$(echo ${{ github.sha }} | cut -c1-7)
echo "version=$version" | tee -a "$GITHUB_OUTPUT"
- name: Set quay.io variables if docker registry is ghcr.io
env:
username: ${{ secrets.HMPPS_QUAYIO_USER }}
token: ${{ secrets.HMPPS_QUAYIO_TOKEN }}

- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2
# - name: Docker login if Docker registry is quay.io
# if: ${{ inputs.docker_registry }} == 'quay.io'
# uses: docker/login-action@v2
# with:
# registry: ${{ inputs.docker_registry }}
# username: ${{ secrets.HMPPS_QUAYIO_USER }}
# password: ${{ secrets.HMPPS_QUAYIO_TOKEN }}
- name: Docker login if Docker registry is quay.io
if: ${{ inputs.docker_registry }} == 'quay.io'
uses: docker/login-action@v2
with:
registry: ${{ inputs.docker_registry }}
username: ${{ username }}
password: ${{ token }}

- name: Docker login if Docker registry is ghcr.io
if: ${{ inputs.docker_registry }} == 'ghcr.io'
Expand Down

0 comments on commit f0ccf6a

Please sign in to comment.