Skip to content

Commit

Permalink
Try and make the test work on github agents
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwardCooke committed Sep 4, 2024
1 parent c65ad50 commit d4cba4f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/create-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,6 @@ jobs:
type=semver,pattern={{major}},value=${{steps.gitversion.outputs.fullSemVer}},enable=${{ github.ref == format('refs/heads/{0}', 'main') }}
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }}
- name: Write out tags
run: |
echo "${{ toJson(steps.meta.outputs) }}"
- name: Build and push
uses: docker/build-push-action@v5
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Run tests.sh
run: ./test.sh
Expand Down
7 changes: 4 additions & 3 deletions test/create-docker-registry.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#!/bin/bash

set -e

if [ "$(docker inspect -f '{{.State.Running}}' "${reg_name}" 2>/dev/null || true)" != 'true' ]; then
docker run \
-d --restart=always -p "127.0.0.1:${reg_port}:5000" --name "${reg_name}" \
registry:2 | docker start "${reg_name}"
fi
fi

docker container ps
docker logs "${reg_name}"

0 comments on commit d4cba4f

Please sign in to comment.