Skip to content

Commit

Permalink
Workflow: Set repo name dynamically
Browse files Browse the repository at this point in the history
  • Loading branch information
Paletrox-Z committed Feb 27, 2024
1 parent 08130cf commit 2c56237
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build_docker_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,13 @@ jobs:
- name: Generate Build Tag
id: date
run: echo "::set-output name=date::$(date + '%s')"


- name: Extract Only Repo Name
run: echo "REPO_NAME=$(echo ${{ github.repository }} | cut -d '/' -f 2)" >> $GITHUB_ENV

- name: Build Image and Push
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: v1v3k6/cp_user-service_reactive:${{ steps.date.outputs.date }}
tags: v1v3k6/cp_${{ env.REPO_NAME }}_reactive:${{ steps.date.outputs.date }}

0 comments on commit 2c56237

Please sign in to comment.