Skip to content

Commit 95cc8e0

Browse files
sync: 0.6.1 from main (d5cdb462f2a225c584cde27aa7f2f4ace7f79d11)
1 parent 77a22ee commit 95cc8e0

File tree

3 files changed

+218
-211
lines changed

3 files changed

+218
-211
lines changed

.github/workflows/publish_docker_image.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,18 @@ jobs:
2020
with:
2121
submodules: recursive
2222

23+
- name: Read version
24+
id: version
25+
run: echo "version=$(cat VERSION 2>/dev/null || echo '0.0.0')" >> $GITHUB_OUTPUT
26+
2327
- name: Docker meta
2428
id: meta
2529
uses: docker/metadata-action@v5
2630
with:
2731
images: evoapicloud/evolution-go
2832
tags: |
29-
type=ref,event=branch
3033
type=semver,pattern={{version}}
34+
type=raw,value=${{ steps.version.outputs.version }}
3135
type=raw,value=latest,enable={{is_default_branch}}
3236
3337
- name: Set up QEMU
@@ -46,12 +50,15 @@ jobs:
4650
id: docker_build
4751
uses: docker/build-push-action@v5
4852
with:
53+
context: .
4954
platforms: linux/amd64,linux/arm64
5055
push: true
5156
tags: ${{ steps.meta.outputs.tags }}
5257
labels: ${{ steps.meta.outputs.labels }}
5358
cache-from: type=gha
5459
cache-to: type=gha,mode=max
60+
build-args: |
61+
VERSION=${{ steps.version.outputs.version }}
5562
5663
- name: Image digest
57-
run: echo ${{ steps.docker_build.outputs.digest }}
64+
run: echo ${{ steps.docker_build.outputs.digest }}

evolution-go

88 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)