Skip to content

Commit

Permalink
feat: push major version
Browse files Browse the repository at this point in the history
  • Loading branch information
bjarneo committed Oct 29, 2024
1 parent 42f37db commit c7924bd
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/publish_docker_image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ jobs:
uses: 'WyriHaximus/github-action-get-previous-tag@v1'
with:
fallback: no-tag

- name: Get major version
id: major_version
run: |
echo "version=$(echo ${{ steps.latest_tag.outputs.tag }} | cut -d'.' -f1)" >> $GITHUB_OUTPUT
- name: Push to Docker Hub
uses: docker/build-push-action@v4
with:
Expand All @@ -38,3 +44,10 @@ jobs:
platforms: linux/amd64, linux/arm64
push: true
tags: hemmeligapp/hemmelig:${{ steps.latest_tag.outputs.tag }}

- name: Push to Docker Hub
uses: docker/build-push-action@v4
with:
platforms: linux/amd64, linux/arm64
push: true
tags: hemmeligapp/hemmelig:${{ steps.major_version.outputs.version }}

0 comments on commit c7924bd

Please sign in to comment.