Skip to content

Commit

Permalink
use variable for registry
Browse files Browse the repository at this point in the history
  • Loading branch information
nickdavis2001 committed Oct 4, 2023
1 parent 920a0c5 commit ee72d44
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/_build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ jobs:
- name: docker integration and acceptance tests
env:
SVC_PREFIX: ${{ matrix.svc_prefix }}
ECR_REGISTRY: ${{ steps.login_ecr.outputs.registry }}
run: |
if [[ "${SVC_PREFIX}" = "api" ]]; then
docker run -d --rm --name lpa-codes-pact-mock pactfoundation/pact-cli:latest mock-service -p "80" --host "0.0.0.0" \
Expand All @@ -166,7 +167,7 @@ jobs:
--pact-dir /tmp/pacts --consumer use_a_lasting_power_of_attorney --provider api-gateway
docker run -d --rm --name iap-images-mock pactfoundation/pact-cli:latest mock-service -p "80" --host "0.0.0.0" \
--pact-dir /tmp/pacts --consumer use_a_lasting_power_of_attorney --provider iap-api-gateway
docker run -d --rm --name mock-one-login -p "4013:8080" 311462405659.dkr.ecr.eu-west-1.amazonaws.com/use_an_lpa/mock_onelogin_app
docker run -d --rm --name mock-one-login -p "4013:8080" $ECR_REGISTRY/use_an_lpa/mock_onelogin_app
curl -XGET http://localhost:4013/token
export DOCKER_REMOTE_LPA_PACT_IP="$(docker inspect --format='{{.NetworkSettings.IPAddress}}' lpa-codes-pact-mock)"
Expand Down

0 comments on commit ee72d44

Please sign in to comment.