diff --git a/.forgejo/workflows/build_deploy.yaml b/.forgejo/workflows/build_deploy.yaml index a04ebf7..4f8c458 100644 --- a/.forgejo/workflows/build_deploy.yaml +++ b/.forgejo/workflows/build_deploy.yaml @@ -5,10 +5,6 @@ on: branches: - main -env: - REGISTRY: git.unjx.de - LATEST_IMAGE: ${{ env.REGISTRY }}/${{ github.repository }}:latest - jobs: prepare: runs-on: ubuntu-latest @@ -17,6 +13,20 @@ jobs: uses: actions/checkout@v4 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 + - name: Docker meta + id: meta + uses: docker/metadata-action@v5 + with: + images: git.unjx.de/${{ github.repository }} + tags: | + type=ref,event=branch + type=ref,event=pr + type=semver,pattern={{version}} + type=semver,pattern={{major}}.{{minor}} + labels: | + org.opencontainers.image.title=GoDash + org.opencontainers.image.description=Blasing fast start page for your services + org.opencontainers.image.vendor=Unjx - name: Login to Forgejo Container Registry uses: docker/login-action@v3 with: @@ -26,7 +36,7 @@ jobs: - name: Build uses: docker/build-push-action@v6 with: - tags: ${{ env.LATEST_IMAGE }} + tags: ${{ steps.meta.outputs.tags }} build-args: | V_GOLANG=${{ vars.V_GOLANG }} V_NODE=${{ vars.V_NODE }}