fix: skip docker compose pull and only comment on PR events
Pull Request / unit-tests (pull_request) Failing after 1m12s
Pull Request / build-and-deploy-ci (pull_request) Has been skipped
Pull Request / analyze-bump-type (pull_request) Has been skipped

- Remove explicit docker compose pull in build-and-deploy-ci;
  image is already built locally on the same host, compose
  default pull_policy:missing uses local image
- Gate Comment bump type on PR step with
  if: github.event_name == 'pull_request' so it doesn't
  fail on workflow_dispatch triggers
This commit is contained in:
2026-05-17 02:35:20 -07:00
parent a5a5f41c16
commit b3ba4b5a8c
+2 -2
View File
@@ -75,9 +75,8 @@ jobs:
# Update the image tag in the compose file # Update the image tag in the compose file
sed -i "s|image: docker.notsosm.art/euchre-camp:[a-zA-Z0-9.-]*|image: docker.notsosm.art/euchre-camp:${IMAGE_TAG}|" ${COMPOSE_FILE} sed -i "s|image: docker.notsosm.art/euchre-camp:[a-zA-Z0-9.-]*|image: docker.notsosm.art/euchre-camp:${IMAGE_TAG}|" ${COMPOSE_FILE}
# Pull the new image and restart the CI stack # Image was built locally in the previous step; compose uses it without pulling
cd /apps/euchre_camp_ci cd /apps/euchre_camp_ci
docker compose pull app
docker compose up -d app docker compose up -d app
- name: Wait for CI site to be healthy - name: Wait for CI site to be healthy
@@ -145,6 +144,7 @@ jobs:
echo "reason=$REASON" >> $GITHUB_OUTPUT echo "reason=$REASON" >> $GITHUB_OUTPUT
- name: Comment bump type on PR - name: Comment bump type on PR
if: github.event_name == 'pull_request'
uses: actions/github-script@v7 uses: actions/github-script@v7
with: with:
script: | script: |