update workflow to properly grab tag

This commit is contained in:
Hayden 2022-10-25 09:27:30 -08:00
parent 3f5aab6fae
commit 5a41e1d02d

View File

@ -13,27 +13,14 @@ jobs:
name: "Frontend and End-to-End Tests" name: "Frontend and End-to-End Tests"
uses: ./.github/workflows/partial-frontend.yml uses: ./.github/workflows/partial-frontend.yml
get-release:
name: "Get Releave Tag"
runs-on: ubuntu-latest
needs:
- backend-tests
- frontend-tests
outputs:
tag: ${{ steps.get-tag.outputs.tag }}
steps:
- uses: oprypin/find-latest-tag@v1
with:
repository: hay-kot/mealie # The repository to scan.
releases-only: true # We know that all relevant tags have a GitHub release for them.
build-release: build-release:
name: Build Tagged Release name: Build Tagged Release
uses: ./.github/workflows/partial-builder.yml uses: ./.github/workflows/partial-builder.yml
needs: needs:
- get-release - backend-tests
- frontend-tests
with: with:
tag: ${{ jobs.get-release.outputs.tag }} tag: ${{ github.event.release.tag_name }}
secrets: secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}