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(ci): stamp canary image with semantic version

boojack83552c35be1d
diff --git a/.github/workflows/build-canary-image.yml b/.github/workflows/build-canary-image.yml
index 6b21dfeb5..d38061617 100644
--- a/.github/workflows/build-canary-image.yml
+++ b/.github/workflows/build-canary-image.yml
@@ -62,6 +62,14 @@ jobs:
- linux/arm64
steps:
- uses: actions/checkout@v6
+ with:
+ fetch-depth: 0
+
+ - name: Resolve version from latest tag
+ id: version
+ run: |
+ version="$(git describe --tags --abbrev=0 2>/dev/null || echo dev)"
+ echo "version=${version#v}" >> "$GITHUB_OUTPUT"
- name: Download frontend artifacts
uses: actions/download-artifact@v7
@@ -96,7 +104,7 @@ jobs:
file: ./scripts/Dockerfile
platforms: ${{ matrix.platform }}
build-args: |
- VERSION=canary
+ VERSION=${{ steps.version.outputs.version }}
COMMIT=${{ github.sha }}
cache-from: type=gha,scope=build-${{ matrix.platform }}
cache-to: type=gha,mode=max,scope=build-${{ matrix.platform }}