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 6500b80 commit f651d5e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v6
with:
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
#uses: docker/build-push-action@v6
#with:
# 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 f651d5e

Please sign in to comment.