Skip to content

Commit

Permalink
used github updated at as tag
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertoChiosa committed Nov 15, 2023
1 parent 11e4a4d commit 4fee0d9
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,25 +21,24 @@ jobs:
name: Build and Push
runs-on: ubuntu-latest
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
uses: docker/setup-buildx-action@v3

- name: Login to Harbor
uses: docker/login-action@v2
with:
registry: https://${{ secrets.HARBOR_REGISTRY_URL }}
username: ${{ secrets.HARBOR_REGISTRY_USERNAME }}
password: ${{ secrets.HARBOR_REGISTRY_PASSWORD }}

- name: Build and push
uses: docker/build-push-action@v5
with:
push: true
tags: ${{ secrets.HARBOR_REGISTRY_URL }}/baeda/timeseries-inspector:$NOW
tags: ${{ secrets.HARBOR_REGISTRY_URL }}/baeda/timeseries-inspector:${{ github.event.repository.updated_at}}

#on:
# push:
Expand Down

0 comments on commit 4fee0d9

Please sign in to comment.