Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ronykris committed Sep 1, 2024
1 parent 01f1b9c commit 32b803f
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,15 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Push to Docker Hub
run: |
IMAGE_ID=$(docker images -q stock-prediction-api:$(date +%s))
docker tag ${IMAGE_ID} ${{ secrets.DOCKERHUB_USERNAME }}/stock-prediction-api:latest
docker push ${{ secrets.DOCKERHUB_USERNAME }}/stock-prediction-api:latest
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/stock-prediction-api:latest
#run: |
# IMAGE_ID=$(docker images -q stock-prediction-api:$(date +%s))
# docker tag ${IMAGE_ID} ${{ secrets.DOCKERHUB_USERNAME }}/stock-prediction-api:latest
# docker push ${{ secrets.DOCKERHUB_USERNAME }}/stock-prediction-api:latest

deploy:
needs: build-and-push
Expand Down

0 comments on commit 32b803f

Please sign in to comment.