diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 9cd4b16..bf5416d 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -3,8 +3,6 @@ name: Create and publish a Docker image on: push: branches: ['dev'] - pull_request: - branches: ['dev'] env: REGISTRY: ghcr.io @@ -36,7 +34,6 @@ jobs: id: set-env-vars run: | # Get short commit hash - echo "Branch: $(git rev-parse --short HEAD)" echo "SHORT_COMMIT_HASH=$(git rev-parse --short HEAD)" >> $GITHUB_ENV # Determine branch name @@ -45,10 +42,6 @@ jobs: else echo "BRANCH_NAME=${{ github.ref_name }}" >> $GITHUB_ENV # Actual branch name for push events fi - - name: Echo step - run: | - echo "Branch: ${{ env.SHORT_COMMIT_HASH }}" - echo "Sha: ${{ env.BRANCH_NAME }}" - name: Build and push Docker image id: push uses: docker/build-push-action@v6 diff --git a/Dockerfile b/Dockerfile index 28c99a8..b3e6c84 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,4 +16,4 @@ npm install npm install pm2 -g EOF -ENTRYPOINT [ "/usr/src/app/entrypoint.sh" ] \ No newline at end of file +ENTRYPOINT [ "/usr/src/app/entrypoint.sh" ]