Skip to content

Commit

Permalink
Merge 8e56088 into f0436ef
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewpearce-digital authored Jan 16, 2025
2 parents f0436ef + 8e56088 commit 6ad37d5
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/detect_changes_to_app_job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_call:
outputs:
changes_detected:
description: "Boolean value for changes detected in /cmd, /cypress, /internal, /web, /lang or /lambda"
description: "Boolean value for changes detected in /cmd, /cypress, /internal, /web, /lang /lambda docker/event-received docker/mlpa or docker/mock-pay"
value: ${{ jobs.compare_changes.outputs.changes_detected }}

jobs:
Expand All @@ -23,12 +23,12 @@ jobs:
echo "Build status of ${{github.event.before}}: $BEFORE_STATUS"
if [[ "$BEFORE_STATUS" == "success" ]]; then
echo "Checking against ${{github.event.before}}"
(git diff --quiet ${{github.event.before}} ${{github.event.after}} -- cmd cypress internal lang web lambda docker/event-received docker/mlpa package.json yarn.lock go.mod && \
(git diff --quiet ${{github.event.before}} ${{github.event.after}} -- cmd cypress internal lang web lambda docker/event-received docker/mlpa docker/mock-pay package.json yarn.lock go.mod && \
echo "changes=${{ false }}" || \
echo "changes=${{ true }}") | tee -a "${GITHUB_OUTPUT}"
else
echo "Checking against origin/main"
(git diff --quiet HEAD origin/main -- cmd cypress internal lang web lambda docker/event-received docker/mlpa package.json yarn.lock go.mod && \
(git diff --quiet HEAD origin/main -- cmd cypress internal lang web lambda docker/event-received docker/mlpa docker/mock-pay package.json yarn.lock go.mod && \
echo "changes=${{ false }}" || \
echo "changes=${{ true }}") | tee -a "${GITHUB_OUTPUT}"
fi
Expand All @@ -44,7 +44,7 @@ jobs:
steps:
- name: Previous build on this branch will be deployed
run: |
echo '### No Changes Detected in /cmd, /cypress, /internal, /web, /lang or /lambda since the previous build!' >> $GITHUB_STEP_SUMMARY
echo '### No Changes Detected in /cmd, /cypress, /internal, /web, /lang /lambda docker/event-received docker/mlpa or docker/mock-pay since the previous build!' >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY # this is a blank line
echo "The previous build will be deployed and the following jobs will be skipped" >> $GITHUB_STEP_SUMMARY
echo "- Create Tags" >> $GITHUB_STEP_SUMMARY
Expand Down
1 change: 1 addition & 0 deletions cmd/trigger_build
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
trigger a build
6 changes: 6 additions & 0 deletions docker/docker-compose.ci.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
services:
app:
image: ${ECR_REGISTRY}/modernising-lpa/app:${TAG}

mock-pay:
build:
context: ..
dockerfile: docker/mock-pay/Dockerfile
container_name: mock-pay
4 changes: 2 additions & 2 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ services:
context: ..
dockerfile: docker/mock-pay/Dockerfile
container_name: mock-pay
volumes:
- ./mock-pay/:/opt/imposter/config/
# volumes:
# - ./mock-pay/:/opt/imposter/config/

mock-uid:
image: outofcoffee/imposter:latest
Expand Down
2 changes: 2 additions & 0 deletions docker/mock-pay/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ FROM outofcoffee/imposter:4.5.0

COPY ./docker/mock-pay /opt/imposter/config/

ADD https://raw.githubusercontent.com/alphagov/pay-publicapi/master/openapi/publicapi_spec.json /opt/imposter/config/publicapi_spec.json

USER imposter

EXPOSE 8080
2 changes: 1 addition & 1 deletion docker/mock-pay/mock-pay-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugin: openapi
specFile: https://raw.githubusercontent.com/alphagov/pay-publicapi/master/openapi/publicapi_spec.json
specFile: publicapi_spec.json
response:
scriptFile: payments.js

Expand Down

0 comments on commit 6ad37d5

Please sign in to comment.