Skip to content

Commit

Permalink
Agrega fecha y hora al tag de la imagen de docker
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodrigo Jacznik committed May 27, 2024
1 parent b4b59aa commit 6ade0a0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,16 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Get the date
run: echo "date=$(date '+%Y%m%d%H%M%S')" >> $GITHUB_ENV

- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/vetsoft:latest
tags: ${{ secrets.DOCKERHUB_USERNAME }}/vetsoft:${{ env.date }}

- name: Deploy
run: curl ${{ secrets.RENDER_HOOK }}

0 comments on commit 6ade0a0

Please sign in to comment.