From 337e0147c7f7e129f2992131a4b59ccab0e25421 Mon Sep 17 00:00:00 2001 From: Ralf Kistner Date: Thu, 25 Jul 2024 12:18:24 +0200 Subject: [PATCH] Add build action. --- .../workflows/diagnostics-image-build.yaml | 25 +++++++++++++++++++ .../workflows/diagnostics-image-release.yaml | 6 ++--- 2 files changed, 28 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/diagnostics-image-build.yaml diff --git a/.github/workflows/diagnostics-image-build.yaml b/.github/workflows/diagnostics-image-build.yaml new file mode 100644 index 00000000..a5d08bfa --- /dev/null +++ b/.github/workflows/diagnostics-image-build.yaml @@ -0,0 +1,25 @@ +name: Diagnostics Image Build + +on: + push: + +concurrency: ${{ github.workflow }}-${{ github.ref }} + +jobs: + build-docker-image: + name: Build diagnostics-app Docker Image + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Build Image + uses: docker/build-push-action@v5 + with: + platforms: linux/amd64 + cache-from: type=registry,ref=${{vars.DIAGNOSTICS_DOCKER_REGISTRY}}:latest + context: . + file: ./tools/diagnostics-app/Dockerfile diff --git a/.github/workflows/diagnostics-image-release.yaml b/.github/workflows/diagnostics-image-release.yaml index fd3f6f07..97d5ff6f 100644 --- a/.github/workflows/diagnostics-image-release.yaml +++ b/.github/workflows/diagnostics-image-release.yaml @@ -1,6 +1,6 @@ -# Publishes the Docker image to DockerHub -# This is triggered whenever the `service` is versioned and tagged -name: Docker Image Release +# Publishes the Diagnostics App Docker image to DockerHub +# This is triggered whenever the `diagnostics-app` package is versioned and tagged +name: Diagnostics Image Release on: workflow_dispatch: