From fde10bfd0fcec78941007932e27bfe5b88f53f5c Mon Sep 17 00:00:00 2001 From: Grieve Date: Wed, 13 Nov 2024 11:02:30 +0800 Subject: [PATCH 1/2] ci(image): fix missing sha tag --- .github/workflows/build-image.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-image.yml b/.github/workflows/build-image.yml index e241d780c..db80403ce 100644 --- a/.github/workflows/build-image.yml +++ b/.github/workflows/build-image.yml @@ -24,7 +24,7 @@ jobs: run: | if [ "${{ github.event_name }}" = "push" ]; then echo "type=sha" > tags.txt - echo "type=raw,value=nightly" > tags.txt + echo "type=raw,value=nightly" >> tags.txt fi if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then if [ -n "${{ github.event.inputs.docker_image_tag_name }}" ]; then From 037cd7f2a4a64c7b4696d30b7bdedb8b416474a7 Mon Sep 17 00:00:00 2001 From: Grieve Date: Wed, 13 Nov 2024 11:04:22 +0800 Subject: [PATCH 2/2] ci(image): use schedule event they are same out, but schedule is feature of docker/metadata-action --- .github/workflows/build-image.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-image.yml b/.github/workflows/build-image.yml index db80403ce..ea7357e97 100644 --- a/.github/workflows/build-image.yml +++ b/.github/workflows/build-image.yml @@ -24,7 +24,7 @@ jobs: run: | if [ "${{ github.event_name }}" = "push" ]; then echo "type=sha" > tags.txt - echo "type=raw,value=nightly" >> tags.txt + echo "type=schedule" >> tags.txt fi if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then if [ -n "${{ github.event.inputs.docker_image_tag_name }}" ]; then