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 9632a49 commit 76f09d6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Build the Docker image
run: docker build . --file Dockerfile --tag stock-prediction-api:$(date +%s)
run: docker build . --file Dockerfile --tag stock-prediction-api
- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
Expand All @@ -41,10 +41,10 @@ jobs:
#with:
# push: true
# tags: ${{ secrets.DOCKERHUB_USERNAME }}/stock-prediction-api:latest
env:
IMAGE_ID: $(docker images -q stock-prediction-api:$(date +%s))
#env:
# IMAGE_ID: $(docker images -q stock-prediction-api:$(date +%s))
run: |
docker tag $IMAGE_ID ${{ secrets.DOCKERHUB_USERNAME }}/stock-prediction-api:latest
docker tag stock-prediction-api ${{ secrets.DOCKERHUB_USERNAME }}/stock-prediction-api:latest
docker push ${{ secrets.DOCKERHUB_USERNAME }}/stock-prediction-api:latest
deploy:
Expand Down

0 comments on commit 76f09d6

Please sign in to comment.