Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

fix: release action

Stevena94855516611
diff --git a/.github/workflows/build-and-push-release-image.yml b/.github/workflows/build-and-push-release-image.yml
index fc7c67ff9..f9d6760ef 100644
--- a/.github/workflows/build-and-push-release-image.yml
+++ b/.github/workflows/build-and-push-release-image.yml
@@ -57,16 +57,12 @@ jobs:
tags: |
type=semver,pattern={{version}},value=${{ env.VERSION }}
type=semver,pattern={{major}}.{{minor}},value=${{ env.VERSION }}
+ ${{ startsWith(github.ref, 'refs/tags/') && 'type=raw,value=stable' }}
flavor: |
latest=true
labels: |
org.opencontainers.image.version=${{ env.VERSION }}
- # Add stable tag if it's from a tag release.
- - name: Add stable tag
- if: startsWith(github.ref, 'refs/tags/')
- run: echo "STABLE_TAG=stable" >> $GITHUB_ENV
-
- name: Build and Push
id: docker_build
uses: docker/build-push-action@v6
@@ -75,5 +71,5 @@ jobs:
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
push: true
- tags: ${{ steps.meta.outputs.tags }}${{ env.STABLE_TAG && ','+env.STABLE_TAG }}
+ tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}