Skip to content

Commit 8d736ba

Browse files
authored
Merge pull request #67 from kkrypt0nn/main
Publish a docker tag for released version
2 parents 281087e + 8bf4a0e commit 8d736ba

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/buildx.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Build and Push Docker Images
33
on:
44
push:
55
tags:
6-
- '*'
6+
- "v*"
77

88
jobs:
99
docker:
@@ -20,9 +20,13 @@ jobs:
2020
with:
2121
username: ${{ secrets.DOCKERHUB_USERNAME }}
2222
password: ${{ secrets.DOCKERHUB_TOKEN }}
23+
- name: Extract version tag
24+
run: echo "VERSION_TAG=${GITHUB_REF_NAME#v}" >> $GITHUB_ENV
2325
- name: Build and push
2426
uses: docker/build-push-action@v5
2527
with:
2628
platforms: linux/amd64,linux/arm64
2729
push: true
28-
tags: evilsocket/legba:latest
30+
tags: |
31+
evilsocket/legba:latest
32+
evilsocket/legba:${{ env.VERSION_TAG }}

0 commit comments

Comments
 (0)