From 29d53092fa56631c778d91614502d2baa40a5020 Mon Sep 17 00:00:00 2001 From: scossu Date: Mon, 6 May 2024 18:59:47 -0400 Subject: [PATCH] Refine triggers. --- .github/workflows/push-app-image.yml | 9 +++++++-- .github/workflows/push-base-image.yml | 2 +- .github/workflows/push-test-image.yml | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/push-app-image.yml b/.github/workflows/push-app-image.yml index 5d61aec..1c704ae 100644 --- a/.github/workflows/push-app-image.yml +++ b/.github/workflows/push-app-image.yml @@ -1,8 +1,13 @@ -name: Push image to Docker Hub. +name: Push app image on: + # This runs on v *.*.0 after the base image has been + # built and pushed, or on v push: tags: - - "v*.*.*" + - "v*.*.[1-9]*" + workflow_run: + workflows: ["Push base image"] + types: ["completed"] env: DOCKER_USER: lcnetdev diff --git a/.github/workflows/push-base-image.yml b/.github/workflows/push-base-image.yml index e9721e5..db26243 100644 --- a/.github/workflows/push-base-image.yml +++ b/.github/workflows/push-base-image.yml @@ -1,4 +1,4 @@ -name: Push base image to Docker Hub. Only on minor/major version update. +name: Push base image on: push: tags: diff --git a/.github/workflows/push-test-image.yml b/.github/workflows/push-test-image.yml index c7502e3..07389a0 100644 --- a/.github/workflows/push-test-image.yml +++ b/.github/workflows/push-test-image.yml @@ -1,4 +1,4 @@ -name: Push test image to Docker Hub. +name: Push test image on: push: branch: