Skip to content

Commit

Permalink
Update calibre-fullserver-build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ridgarou authored Oct 4, 2020
1 parent 0c79566 commit 9341f39
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/calibre-fullserver-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,11 @@ jobs:
password: ${{ env.DOCKER_PASSWORD }}
# Log out from the Docker registry at the end of a job
logout: true # optional, default is true

- name: Create image Flag
run: flag=$(date +%s)
run: |
export FLAG=$(date +%s)
echo "::set-env name=FLAG::$FLAG"
- name: Build and push Docker images
# You may pin to the exact commit or the version.
Expand All @@ -64,7 +67,7 @@ jobs:
# Docker repository to tag the image with
repository: ${{ env.DOCKER_IMAGE_NAME }}
# Comma-delimited list of tags. These will be added to the registry/repository to form the image's tags
tags: ${{ env.DOCKER_IMAGE_NAME }}:latest, ${{ env.DOCKER_IMAGE_NAME }}:${{ flag }} # optional
tags: ${{ env.DOCKER_IMAGE_NAME }}:latest, ${{ env.DOCKER_IMAGE_NAME }}:$FLAG # optional
# Automatically tags the built image with the git reference as per the readme
#tag_with_ref: # optional
# Automatically tags the built image with the git short SHA as per the readme
Expand Down

0 comments on commit 9341f39

Please sign in to comment.