Skip to content

Commit

Permalink
Add DOCKER_DATE_TAG
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardehrenfried committed Mar 15, 2022
1 parent cfb573a commit 21d4ffc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/cibuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,17 @@ jobs:
with:
files: target/site/jacoco/jacoco.xml

- name: Sets env vars for release
if: ${{ github.repository_owner == 'mfdz' && github.ref == 'refs/heads/dev-2.x' }}
run: echo "DOCKER_DATE_TAG=`date +%Y-%m-%d-%H_%M`" >> $GITHUB_ENV
env:
TZ: Europe/Berlin

- name: Publish to Dockerhub
if: ${{ github.repository_owner == 'mfdz' && github.ref == 'refs/heads/dev-2.x' }}
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: mfdz/opentripplanner
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_AUTH}}
tags: "latest,${{ github.sha }}"
tags: "latest,${{ github.sha }},${ env.DOCKER_TAG_TAG }"

0 comments on commit 21d4ffc

Please sign in to comment.