Skip to content

Commit

Permalink
revert deploy.yml
Browse files Browse the repository at this point in the history
revert deploy.yml
  • Loading branch information
seoko97 authored Oct 10, 2023
2 parents ccaf11d + 577dc22 commit ad831ab
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,7 @@ jobs:
run: |
if [ `docker ps -f "name=front" -q` ]
then
docker rm -f $(docker ps -f "name=${{secrets.FRONT_DOCKER_IMAGE_NAME}}" -q)
docker rmi -f $( docker images -f "reference=${{secrets.DOCKER_REGISTRY_URL}}/${{secrets.FRONT_DOCKER_IMAGE_NAME}}" -q)
docker rm -f $(docker ps -f "name=front" -q)
fi
docker image prune -a
docker pull ${{secrets.DOCKER_REGISTRY_URL}}/${{secrets.FRONT_DOCKER_IMAGE_NAME}}:${{ github.sha }}
docker run -dit -p 3000:3000 --name front ${{secrets.DOCKER_REGISTRY_URL}}/${{secrets.FRONT_DOCKER_IMAGE_NAME}}:${{ github.sha }}

0 comments on commit ad831ab

Please sign in to comment.