about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEffy Elden <github@effy.is>2022-11-16 19:27:34 +1100
committerGitHub <noreply@github.com>2022-11-16 09:27:34 +0100
commit7efe2cf00f306b1a0cf7c5dc9faaac531f3402f8 (patch)
tree0e522a5604d91a87b7c307bfc2a604a80009ef16
parenteb675af0fb0d73b697e066100c4faf066c0baff7 (diff)
Modify image build workflow for Glitch workflows (#1942)
-rw-r--r--.github/workflows/build-image.yml9
1 files changed, 2 insertions, 7 deletions
diff --git a/.github/workflows/build-image.yml b/.github/workflows/build-image.yml
index a95efc94c..4c3cade3b 100644
--- a/.github/workflows/build-image.yml
+++ b/.github/workflows/build-image.yml
@@ -4,8 +4,6 @@ on:
   push:
     branches:
       - 'main'
-    tags:
-      - '*'
   pull_request:
     paths:
       - .github/workflows/build-image.yml
@@ -31,13 +29,10 @@ jobs:
         id: meta
         with:
           images: ghcr.io/${{ github.repository_owner }}/mastodon
-          flavor: |
-            latest=auto
           tags: |
+            type=raw,value=latest,enable={{is_default_branch}}
             type=edge,branch=main
-            type=pep440,pattern={{raw}}
-            type=pep440,pattern=v{{major}}.{{minor}}
-            type=ref,event=pr
+            type=sha,prefix=,format=long
       - uses: docker/build-push-action@v3
         with:
           context: .