File tree Expand file tree Collapse file tree 3 files changed +218
-211
lines changed
Expand file tree Collapse file tree 3 files changed +218
-211
lines changed Original file line number Diff line number Diff 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 }}
You can’t perform that action at this time.
0 commit comments