Skip to content

Commit

Permalink
chore: exported current_date to github env
Browse files Browse the repository at this point in the history
  • Loading branch information
TakSeBiegam committed Jan 4, 2024
1 parent 72ab4e6 commit 424f190
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: create tag
run: echo "CURRENT_DATE=$(date +%s)"
run: echo "CURRENT_DATE=$(date +%s)" >> $GITHUB_ENV
- name: Set env
run: echo "GITHUB_SHA_SHORT=$(echo $GITHUB_SHA | cut -c 1-6)" >> $GITHUB_ENV
- name: Build and push
Expand All @@ -44,4 +44,4 @@ jobs:
file: ./Dockerfile
context: .
push: true
tags: arkadiuszkurylo/aexol-shop-backend:${{ env.GITHUB_SHA_SHORT }}-${CURRENT_DATE}
tags: arkadiuszkurylo/aexol-shop-backend:${{ env.GITHUB_SHA_SHORT }}-${{ env.CURRENT_DATE }}

0 comments on commit 424f190

Please sign in to comment.