Skip to content

Commit

Permalink
Switch to use metadata action
Browse files Browse the repository at this point in the history
  • Loading branch information
kchason committed Jun 17, 2024
1 parent b449fae commit 1999bad
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,20 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Generate Tag Name
uses: docker/metadata-action@v5
id: meta
with:
images: kchason/rdf-toolkit-normalizer:${{ github.ref_name }}

- name: Build and Push Latest
uses: docker/build-push-action@v6
with:
push: true
tags: kchason/rdf-toolkit-normalizer:latest

- name: Build and Push Latest
- name: Build and Push Tag
uses: docker/build-push-action@v6
with:
push: true
tags: kchason/rdf-toolkit-normalizer:${GITHUB_REF_NAME}
tags: ${{ steps.meta.outputs.tags }}

0 comments on commit 1999bad

Please sign in to comment.