3535 username : ${{ github.actor }}
3636 password : ${{ secrets.GITHUB_TOKEN }}
3737
38- - name : Set VERSION for ldflags (operator and default processor image tag)
39- id : version
40- run : |
41- if [[ "$GITHUB_REF" == refs/tags/v* ]]; then
42- echo "version=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
43- else
44- # На коммитах — branch-shortSha, совпадает с тегом образа (type=sha,prefix={{branch}}-)
45- VERSION="${{ github.ref_name }}-$(git rev-parse --short HEAD)"
46- echo "version=$VERSION" >> $GITHUB_OUTPUT
47- fi
48-
4938 - name : Extract metadata (tags, labels) for Docker
5039 id : meta
5140 uses : docker/metadata-action@v5
@@ -60,14 +49,11 @@ jobs:
6049 type=sha,prefix={{branch}}-
6150 type=raw,value=latest,enable={{is_default_branch}}
6251
63- - name : Build and push Docker image (multi-arch amd64, arm64)
52+ - name : Build and push Docker image
6453 uses : docker/build-push-action@v5
6554 with :
6655 context : .
6756 file : ./Dockerfile
68- platforms : linux/amd64,linux/arm64
69- build-args : |
70- VERSION=${{ steps.version.outputs.version }}
7157 push : true
7258 tags : ${{ steps.meta.outputs.tags }}
7359 labels : ${{ steps.meta.outputs.labels }}
@@ -116,7 +102,7 @@ jobs:
116102
117103 ## Docker Image
118104
119- Docker image is available at (multi-arch: amd64, arm64) :
105+ Docker image is available at:
120106 ```
121107 ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.tag.outputs.TAG_NAME }}
122108 ```
0 commit comments