Update master_push.yml

This commit is contained in:
2024-09-24 02:31:37 +02:00
committed by GitHub
Unverified
parent b4210180ff
commit 23e0cde431

View File

@@ -73,12 +73,19 @@ jobs:
run: docker build ${{ github.workspace }} -t ghcr.io/${{github.actor}}/${{ steps.name.outputs.lowercase }}:latest -t ghcr.io/${{github.actor}}/${{ steps.name.outputs.lowercase }}:${{steps.gitversion.outputs.SemVer}} -f ${{ github.workspace }}/${{ matrix.app }}/${{ matrix.app }}/Dockerfile run: docker build ${{ github.workspace }} -t ghcr.io/${{github.actor}}/${{ steps.name.outputs.lowercase }}:latest -t ghcr.io/${{github.actor}}/${{ steps.name.outputs.lowercase }}:${{steps.gitversion.outputs.SemVer}} -f ${{ github.workspace }}/${{ matrix.app }}/${{ matrix.app }}/Dockerfile
- name: Publish image - name: Publish image
run: docker push ghcr.io/${{github.actor}}/${{ steps.name.outputs.lowercase }} --all-tags run: docker push ghcr.io/${{github.actor}}/${{ steps.name.outputs.lowercase }} --all-tags
outputs:
version: ${{ steps.gitversion.outputs.SemVer }}
release:
name: Release
runs-on: ubuntu-latest
needs: publish
steps:
- name: Create Release - name: Create Release
uses: actions/create-release@v1 uses: actions/create-release@v1
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
tag_name: ${{ steps.gitversion.outputs.SemVer }} tag_name: ${{needs.publish.outputs.version}}
release_name: ${{ steps.gitversion.outputs.SemVer }} release_name: ${{needs.publish.outputs.version}}
draft: false draft: false
prerelease: false prerelease: false