diff --git a/.github/workflows/backend-ci-cd.yml b/.github/workflows/backend-ci-cd.yml index 8c241af42..c5682b400 100644 --- a/.github/workflows/backend-ci-cd.yml +++ b/.github/workflows/backend-ci-cd.yml @@ -4,8 +4,8 @@ on: push: branches: [ "develop-BE" ] paths: [ "backend/**" ] - # pull_request: - # branches: [ "develop-BE" ] + pull_request: + branches: [ "develop-BE" ] jobs: @@ -61,6 +61,6 @@ jobs: docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_PASSWORD }} docker stop ${{ secrets.DOCKERHUB_CONTAINER_NAME }} | true docker rm ${{ secrets.DOCKERHUB_CONTAINER_NAME }} | true - docker image prune -a -f docker pull ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_IMAGE_NAME }}:${GITHUB_SHA::7} docker run --name ${{ secrets.DOCKERHUB_CONTAINER_NAME }} -d -p 80:8080 ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_IMAGE_NAME }}:${GITHUB_SHA::7} + docker image prune -a -f \ No newline at end of file