Skip to content

Commit

Permalink
chore: changed creating envs
Browse files Browse the repository at this point in the history
  • Loading branch information
TakSeBiegam committed Jan 4, 2024
1 parent 1ba706b commit f94f0e2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,12 @@ jobs:
password: ${{ secrets.DOCKER_PASSWORD }}
- name: create tag
run: echo "CURRENT_DATE=$(date +%s)"
- name: Set env
run: echo "GITHUB_SHA_SHORT=$(echo $GITHUB_SHA | cut -c 1-6)" >> $GITHUB_ENV
- name: Build and push
uses: docker/build-push-action@v5
with:
file: ./Dockerfile
context: .
push: true
tags: arkadiuszkurylo/aexol-shop-backend:${{ env.GITHUB_SHA_SHORT }}-${CURRENT_DATE}
tags: arkadiuszkurylo/aexol-shop-backend:${GITHUB_SHA_SHORT}-${CURRENT_DATE}

0 comments on commit f94f0e2

Please sign in to comment.