Skip to content

Commit

Permalink
chore: update github action
Browse files Browse the repository at this point in the history
  • Loading branch information
dkrest1 committed Feb 7, 2024
1 parent 41009f3 commit ee28949
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ jobs:
- name: Build and Push Docker Image
uses: docker/build-push-action@v4
with:
# context: .
file: ./Dockerfile
push: true
tags: ${{ secrets.DOCKER_USERNAME }}/task-manager:${{ github.sha }}, ${{ secrets.DOCKER_USERNAME }}/task-manager:latest
Expand All @@ -62,9 +61,8 @@ jobs:
script: |
sleep 10
set -e
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
docker pull dkrest1/task-manager:latest
docker pull dkrest/task-manager:latest
docker stop task-manager || true
docker rm task-manager || true
docker run -d -p 9090:9090 --name task-manager dkrest1/task-manager:latest > deployment.log 2>&1 || (echo "Deployment failed" && cat deployment.log && exit 1)
docker run -d -p 9090:9090 --name task-manager dkrest/task-manager:latest > deployment.log 2>&1 || (echo "Deployment failed" && cat deployment.log && exit 1)
docker ps | grep task-manager

0 comments on commit ee28949

Please sign in to comment.