Skip to content

Commit

Permalink
Agg git-based version into tags
Browse files Browse the repository at this point in the history
  • Loading branch information
vgrebenschikov authored Nov 1, 2024
1 parent 367d738 commit 255dca6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,17 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Get version from git
id: git_version
run: echo "VERSION=$(git describe --tags --always | sed 's/\.0-/./')" >> $GITHUB_ENV


- name: Build and Push Docker Image
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/arm/v7
push: true
tags: vgrebenschikov/amneziawg-mikrotik:latest
tags: |
vgrebenschikov/amneziawg-mikrotik:latest
vgrebenschikov/amneziawg-mikrotik:${{ env.VERSION }}

0 comments on commit 255dca6

Please sign in to comment.