Skip to content

Commit

Permalink
Add tag extraction to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
r-dvl committed Mar 10, 2024
1 parent 1de536a commit 05cb2c0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build-and-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,20 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract tag name
shell: bash
run: echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV

- name: Build and push API image
uses: docker/build-push-action@v2
with:
context: ./api
push: true
tags: ghcr.io/r-dvl/${{ github.repository }}/bandanize-api:latest
tags: ghcr.io/${{ github.repository }}/bandanize-api:latest

- name: Build and push UI image
uses: docker/build-push-action@v2
with:
context: ./ui
push: true
tags: ghcr.io/r-dvl/${{ github.repository }}/bandanize-ui:latest
tags: ghcr.io/${{ github.repository }}/bandanize-ui:latest

0 comments on commit 05cb2c0

Please sign in to comment.