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

Commit

Permalink
Added github actions (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandhya1874 authored Oct 7, 2024
1 parent 20800e4 commit 411ba17
Show file tree
Hide file tree
Showing 2 changed files with 104 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/test_docker_image_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
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

permissions:
contents: read
packages: write

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
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 }}

52 changes: 52 additions & 0 deletions .github/workflows/test_multiplatform_docker_image_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Pipeline

on:
push:
branches:
- main

workflow_dispatch:
inputs:
docker_registry:
description: Docker registry
required: true
default: 'quay.io'
type: choice
options:
- 'quay.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

permissions:
contents: read
packages: write

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
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 }}

0 comments on commit 411ba17

Please sign in to comment.