Skip to content

2.9.7

2.9.7 #56

Workflow file for this run

name: Publish docker image
on:
release:
types: [published]
jobs:
push_to_registry:
name: Push image to docker hub
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Get Tags for tools Image
id: metadata-tools
uses: docker/metadata-action@v4
with:
images: ministryofjustice/cloud-platform-tools
tags: |
type=ref,event=tag
- name: Build and push tools image
uses: docker/build-push-action@v3
with:
context: .
file: Dockerfile
push: true
tags: ${{ steps.metadata-tools.outputs.tags }}
- name: Get Tags for env pipeline tools
id: metadata-env-tools
uses: docker/metadata-action@v4
with:
images: ministryofjustice/cloud-platform-pipeline-tools
tags: |
type=ref,event=tag
- name: Build and push env pipeline tools image
uses: docker/build-push-action@v3
with:
context: .
file: Dockerfile.cp-env-pipeline
push: true
tags: ${{ steps.metadata-env-tools.outputs.tags }}
- name: Get Tags for infrastructure pipeline image
id: metadata-infra-tools
uses: docker/metadata-action@v4
with:
images: ministryofjustice/cloud-platform-infrastructure
tags: |
type=ref,event=tag
- name: Build and push env pipeline tools image
uses: docker/build-push-action@v3
with:
context: .
file: Dockerfile.cp-infrastructure
push: true
tags: ${{ steps.metadata-infra-tools.outputs.tags }}