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 2b89522 commit 5659f6d
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/test_docker_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,22 +40,15 @@ 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
id: quay_login
if: ${{ inputs.docker_registry }} == 'ghcr.io'
run: |
echo "username=${{ secrets.HMPPS_QUAYIO_USER }}" | tee -a "$GITHUB_OUTPUT"
echo "token=${{ secrets.HMPPS_QUAYIO_TOKEN }}" | tee -a "$GITHUB_OUTPUT"
- 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: ${{ steps.quay_login.outputs.username }}
password: ${{ steps.quay_login.outputs.token }}
username: ${{ secrets.HMPPS_QUAYIO_USER }}
password: ${{ secrets.HMPPS_QUAYIO_TOKEN }}

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

0 comments on commit 5659f6d

Please sign in to comment.