Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

Commit

Permalink
Test (#5)
Browse files Browse the repository at this point in the history
* Test

* .

* .

* .

* .
  • Loading branch information
Sandhya1874 authored Oct 8, 2024
1 parent 411ba17 commit 047977d
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 4 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/build-test-and-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Pipeline

on:
push:
branches:
- main

workflow_dispatch:
inputs:
docker_registry:
description: Docker registry
required: true
default: 'ghcr.io'
type: choice
options:
- 'ghcr.io'
- 'quay.io'
registry_org:
description: Docker registry organisation
required: true
default: 'ministryofjustice'
type: choice
options:
- 'ministryofjustice'
- 'hmpps'
additional_docker_tag:
description: Additional docker tag that can be used to specify stable tags
required: false
default: ''
type: string
push:
description: Push docker image to registry flag
required: true
default: true
type: boolean
docker_multiplatform:
description: docker multiplatform build or not
required: true
default: true
type: boolean

permissions:
contents: read
packages: write

jobs:

test_docker_build:
name: Build docker image from hmpps-github-actions
uses: ministryofjustice/hmpps-github-actions/.github/workflows/build-test-and-deploy.yml@feat/HEAT-344-share-app-version-across-jobs
secrets: inherit
with:
docker_registry: ${{ inputs.docker_registry || 'quay.io' }}
registry_org: ${{ inputs.registry_org || 'hmpps' }}
additional_docker_tag: ${{ inputs.additional_docker_tag }}
push: ${{ inputs.push || true }}
docker_multiplatform: ${{ inputs.docker_multiplatform }}
4 changes: 2 additions & 2 deletions .github/workflows/test_docker_image_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ on:
- 'ministryofjustice'
- 'hmpps'
additional_docker_tag:
description: Additional docker tag that can be used to specify stable tags
description: Additional docker tag that can be used to specify stable tags
required: false
default: ''
type: string
Expand All @@ -42,7 +42,7 @@ jobs:

test_docker_build:
name: Build docker image from hmpps-github-actions
uses: ministryofjustice/hmpps-github-actions/.github/workflows/test_docker_build.yml@feat/HEAT-354-docker-build
uses: ministryofjustice/hmpps-github-actions/.github/workflows/test_docker_build.yml@feat/HEAT-344-share-app-version-across-jobs
secrets: inherit
with:
docker_registry: ${{ inputs.docker_registry || 'quay.io' }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test_multiplatform_docker_image_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ on:
- 'ministryofjustice'
- 'hmpps'
additional_docker_tag:
description: Additional docker tag that can be used to specify stable tags
description: Additional docker tag that can be used to specify stable tags
required: false
default: ''
type: string
Expand All @@ -42,7 +42,7 @@ jobs:

test_multiplatform_docker_build:
name: Build docker image from hmpps-github-actions
uses: ministryofjustice/hmpps-github-actions/.github/workflows/test_multiplatform_docker_build.yml@feat/HEAT-354-docker-build
uses: ministryofjustice/hmpps-github-actions/.github/workflows/build_multiplatform_docker.yml@feat/HEAT-344-share-app-version-across-jobs
secrets: inherit
with:
docker_registry: ${{ inputs.docker_registry || 'quay.io' }}
Expand Down

0 comments on commit 047977d

Please sign in to comment.