ci: Add image labels, merge publish to Docker Hub/GHCR workflows (#954)

* Merge publish to Docker Hub/GHCR workflows

* Add labels to images built by publish workflows
This commit is contained in:
tigattack
2025-01-06 04:03:14 +00:00
committed by GitHub
parent d69844dc13
commit b650518ccc
5 changed files with 51 additions and 83 deletions

View File

@ -17,10 +17,18 @@ jobs:
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.IMAGE_REPOSITORY }}
tags: |
type=raw,value=experimental
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
platforms: linux/amd64
pull: true
push: true
tags: ${{ env.IMAGE_REPOSITORY }}:experimental
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}