From ca517e0bdb10d979b89f69762089fb30c7ceec49 Mon Sep 17 00:00:00 2001 From: Igor Lerinc Date: Sat, 11 Nov 2023 17:55:29 +0100 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a75e159..c4cdaa0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -23,12 +23,12 @@ jobs: docker login -u $DOCKER_USER -p $DOCKER_PASSWORD - name: Get current date # get the date of the build id: date - run: echo "date=$(date +'%Y-%m-%d--%M-%S')" >> $GITHUB_OUTPUT + run: echo "tag=latest" >> $GITHUB_OUTPUT - name: Build the Docker image # push The image to the docker hub - run: docker build backend/ --file backend/Dockerfile --tag $DOCKER_USER/$REPO_NAME:${{ steps.date.outputs.date }} + run: docker build backend/ --file backend/Dockerfile --tag $DOCKER_USER/$REPO_NAME:${{ steps.date.outputs.tag }} - name: Docker Push - run: docker push $DOCKER_USER/$REPO_NAME:${{ steps.date.outputs.date }} + run: docker push $DOCKER_USER/$REPO_NAME:${{ steps.date.outputs.tag }} # https://render.com/docs/deploy-hooks#using-with-github-actions - name: Deploy on Render