mirror of
https://github.com/usememos/memos.git
synced 2024-11-23 22:07:47 +03:00
fix: release action
This commit is contained in:
parent
4870433289
commit
a948555166
@ -57,16 +57,12 @@ jobs:
|
|||||||
tags: |
|
tags: |
|
||||||
type=semver,pattern={{version}},value=${{ env.VERSION }}
|
type=semver,pattern={{version}},value=${{ env.VERSION }}
|
||||||
type=semver,pattern={{major}}.{{minor}},value=${{ env.VERSION }}
|
type=semver,pattern={{major}}.{{minor}},value=${{ env.VERSION }}
|
||||||
|
${{ startsWith(github.ref, 'refs/tags/') && 'type=raw,value=stable' }}
|
||||||
flavor: |
|
flavor: |
|
||||||
latest=true
|
latest=true
|
||||||
labels: |
|
labels: |
|
||||||
org.opencontainers.image.version=${{ env.VERSION }}
|
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
|
- name: Build and Push
|
||||||
id: docker_build
|
id: docker_build
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
@ -75,5 +71,5 @@ jobs:
|
|||||||
file: ./Dockerfile
|
file: ./Dockerfile
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.meta.outputs.tags }}${{ env.STABLE_TAG && ','+env.STABLE_TAG }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
Loading…
Reference in New Issue
Block a user