Skip to content

Commit

Permalink
ci(docker): auto extract image tags
Browse files Browse the repository at this point in the history
  • Loading branch information
obviyus committed Feb 27, 2024
1 parent 1c59a68 commit 2758709
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract tags, labels for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ matrix.image }}

- name: Build and push
uses: docker/build-push-action@v5
with:
Expand All @@ -69,5 +75,6 @@ jobs:
file: ${{ matrix.dockerfile }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max

0 comments on commit 2758709

Please sign in to comment.