Skip to content

Commit

Permalink
Update for Versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
MMagTech committed Jun 19, 2024
1 parent 26706e4 commit 9b59255
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/docker-build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
branches:
- main
tags:
- 'v*.*.*'

jobs:
build-and-push:
Expand All @@ -22,9 +24,16 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Extract version from tag
id: vars
run: |
VERSION=${GITHUB_REF#refs/tags/}
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Build and push Docker image
run: |
docker buildx create --use
docker buildx build --platform linux/amd64,linux/arm64 \
-t mmagtech/fmtv-downloader:${{ env.VERSION }} \
-t mmagtech/fmtv-downloader:latest \
--push .

0 comments on commit 9b59255

Please sign in to comment.