Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lnxfsf authored Nov 11, 2023
1 parent 5803995 commit ca517e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ca517e0

Please sign in to comment.