From eef2e89b8e340a8df46d1dbd2d71e49e3ed8ba87 Mon Sep 17 00:00:00 2001 From: Francisco Barrento Date: Mon, 8 Jan 2024 22:02:35 +0000 Subject: [PATCH] Added build-and-publish workflow --- .github/workflows/build-and-publish.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index 4f6e2e6..9c523de 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -1,11 +1,11 @@ name: Build and Publish Docker Image on: - push: - paths: - - ".github/**" - - "src/**" - branches: - - main + workflow_run: + workflows: + - Lint, Analyse and Test + types: + - completed + env: REGISTRY: ghcr.io @@ -14,6 +14,7 @@ env: jobs: build-and-push-image: runs-on: ubuntu-latest + if: ${{ github.event.workflow_run.conclusion == 'success' }} permissions: contents: read packages: write