Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandhya1874 committed Oct 8, 2024
1 parent f4780a2 commit a9b7b1d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ inputs:
description: App version
required: true
type: string
docker_registry_username:
description: Docker registry username
required: true
type: string
docker_registry_token:
description: Docker registry token
required: true
type: string

# secrets:
# HMPPS_QUAYIO_USER:
Expand All @@ -51,8 +59,8 @@ runs:
uses: docker/login-action@v2
with:
registry: ${{ inputs.docker_registry }}
username: ${{ github.actor }}
password: ${{ github.token }}
username: ${{ inputs.docker_registry_user }}
password: ${{ inputs.docker_registry_token }}

- name: Build Docker images
uses: docker/build-push-action@v4
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/build_multiplatform_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ jobs:
additional_docker_tag: ${{ inputs.additional_docker_tag }}
push: ${{ inputs.push }}
app_version: ${{ needs.create_app_version.outputs.version }}
docker_registry_username: ${{ github.actor }}
docker_registry_token: ${{ github.token }}


- uses: ministryofjustice/hmpps-github-actions/.github/actions/build-test-and-deploy/build_multiplatform_docker@feat/HEAT-344-share-app-version-across-jobs
Expand All @@ -68,5 +70,8 @@ jobs:
additional_docker_tag: ${{ inputs.additional_docker_tag }}
push: ${{ inputs.push }}
app_version: ${{ needs.create_app_version.outputs.version }}
docker_registry_username: ${{ secrets.HMPPS_QUAYIO_USER }}
docker_registry_token: ${{ secrets.HMPPS_QUAYIO_TOKEN }}



0 comments on commit a9b7b1d

Please sign in to comment.