From 4fb98f83bfe0b49de084573953624d09fd2e8669 Mon Sep 17 00:00:00 2001 From: AttilaGombosER Date: Sat, 15 Jun 2024 17:50:17 +0200 Subject: [PATCH] Extract docker metadata to add tags/labels to the pushed images --- .github/workflows/python-release.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python-release.yml b/.github/workflows/python-release.yml index 5ba6ff3..51a62c0 100644 --- a/.github/workflows/python-release.yml +++ b/.github/workflows/python-release.yml @@ -33,13 +33,19 @@ jobs: with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Extract Docker metadata + id: meta + uses: docker/metadata-action@v5 + with: + images: effectiverange/apt-server - name: Build and push uses: docker/build-push-action@v5 with: context: . platforms: linux/amd64,linux/arm64 push: true - tags: effectiverange/apt-server:latest + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} build-args: | PACKAGE_ARCHS=armhf,arm64,amd64 - name: Release