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 authored and GitHub committed 2025-01-05 23:03:14 -05:00
1 parent d69844dc13
commit b650518ccc
5 files changed
+51 -83

No files matched your search

+9 -1
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 }}