Skip to content

Commit

Permalink
Extract docker metadata to add tags/labels to the pushed images
Browse files Browse the repository at this point in the history
  • Loading branch information
AttilaGombosER committed Jun 15, 2024
1 parent ed52363 commit 4fb98f8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/python-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4fb98f8

Please sign in to comment.