Skip to content

Commit

Permalink
.github/workflows/production.yml: adding date handling
Browse files Browse the repository at this point in the history
  • Loading branch information
g3rhard committed Apr 20, 2024
1 parent 2db73f3 commit c0d5780
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,16 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y.%m.%d')"

- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ github.repository }}:$(date +'%Y%m%d')-${{ github.ref_name }}
tags: ${{ github.repository }}:${{ steps.date.outputs.date }}-${{ github.ref_name }}
platforms: linux/amd64,linux/arm64

- name: Send Discord notification
Expand Down

0 comments on commit c0d5780

Please sign in to comment.