Skip to content

Commit

Permalink
Use meta action for labels.
Browse files Browse the repository at this point in the history
  • Loading branch information
isoteemu committed Nov 9, 2023
1 parent ff4e32a commit 2d45f23
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,21 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Get container meta information
id: meta
uses: docker/metadata-action@v3
with:
images: ${{ env.IMAGE_NAME }}

- name: Build and push fileserv
uses: docker/build-push-action@v4
with:
context: .
target: base
platforms: ${{ env.PLATFORMS }}
push: true
tags: ${{ env.IMAGE_NAME }}:${{ github.ref_name }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

- name: Build and push devcontainer when pushing to main
uses: devcontainers/[email protected]
Expand Down

0 comments on commit 2d45f23

Please sign in to comment.