Skip to content

Commit

Permalink
added date to tag
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertoChiosa committed Nov 15, 2023
1 parent 1b9aa4d commit f1c8c54
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ jobs:
name: Build and Push
runs-on: ubuntu-latest
steps:
- steps:
- name: Set current date as env variable
run: echo "NOW=$(date +'%Y-%m-%dT%H:%M:%S')" >> $GITHUB_ENV
- name: Echo current date
run: echo $NOW
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
Expand All @@ -35,7 +40,7 @@ jobs:
uses: docker/build-push-action@v5
with:
push: true
tags: ${{ secrets.HARBOR_REGISTRY_URL }}/baeda/timeseries-inspector:${{date +%s}}.v1
tags: ${{ secrets.HARBOR_REGISTRY_URL }}/baeda/timeseries-inspector:$NOW

#on:
# push:
Expand Down

0 comments on commit f1c8c54

Please sign in to comment.