Skip to content

Commit 05269b2

Browse files
committed
Try to generate latest tags again
1 parent 6090264 commit 05269b2

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
images: ghcr.io/geocompx/${{ matrix.image }}
5656
tags: |
5757
type=sha,enable=${{ github.event_name == 'push' }}
58-
type=raw,value=latest,enable=${{ matrix.image == 'latest' }}
58+
type=raw,value=latest,enable=${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' }}
5959
type=raw,value={{date 'YYYY-MM-DD'}},enable=${{ github.event_name == 'schedule' }}
6060
6161
- name: Set up QEMU
@@ -64,16 +64,7 @@ jobs:
6464
- name: Set up Docker Buildx
6565
uses: docker/setup-buildx-action@v3
6666

67-
- name: Prepare tags
68-
id: prepare-tags
69-
if: ${{ matrix.image == 'latest' }}
70-
run: |
71-
# Combine metadata-action tags and add the explicit latest tag on its own line
72-
META='${{ steps.meta.outputs.tags }}'
73-
printf "%s\nghcr.io/geocompx/latest\n" "$META" > all-tags.txt
74-
echo "tags<<EOF" >> $GITHUB_OUTPUT
75-
cat all-tags.txt >> $GITHUB_OUTPUT
76-
echo "EOF" >> $GITHUB_OUTPUT
67+
# ... no Prepare tags step; metadata-action will emit latest when appropriate
7768

7869
- name: Login to GitHub Container Registry
7970
if: github.event_name == 'schedule' || github.event_name == 'push'
@@ -90,7 +81,7 @@ jobs:
9081
context: .
9182
file: ${{ matrix.dockerfile }}
9283
push: true
93-
tags: ${{ steps.prepare-tags.outputs.tags && steps.prepare-tags.outputs.tags || steps.meta.outputs.tags }}
84+
tags: ${{ steps.meta.outputs.tags }}
9485
labels: ${{ steps.meta.outputs.labels }}
9586
secrets: |
9687
"GITHUB_PAT=${{ secrets.GITHUB_TOKEN }}"

0 commit comments

Comments
 (0)