Skip to content

Commit

Permalink
ci: publish a docker tag for released version
Browse files Browse the repository at this point in the history
  • Loading branch information
kkrypt0nn committed Jan 16, 2025
1 parent 281087e commit 8bf4a0e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/buildx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build and Push Docker Images
on:
push:
tags:
- '*'
- "v*"

jobs:
docker:
Expand All @@ -20,9 +20,13 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Extract version tag
run: echo "VERSION_TAG=${GITHUB_REF_NAME#v}" >> $GITHUB_ENV
- name: Build and push
uses: docker/build-push-action@v5
with:
platforms: linux/amd64,linux/arm64
push: true
tags: evilsocket/legba:latest
tags: |
evilsocket/legba:latest
evilsocket/legba:${{ env.VERSION_TAG }}

0 comments on commit 8bf4a0e

Please sign in to comment.