Skip to content

Commit

Permalink
test if validator-engine inside the docker image is valid
Browse files Browse the repository at this point in the history
  • Loading branch information
neodiX committed Jul 9, 2024
1 parent 347e85a commit 4be738d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/docker-ubuntu-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,8 @@ jobs:
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:test

- name: Test
timeout-minutes: 5
run: |
docker run --rm -e "PUBLIC_IP=1.1.1.1" --network host ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:test
docker run --rm -e "TEST=1" ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:test
- name: Get next tag
id: tag
Expand Down
6 changes: 6 additions & 0 deletions docker/init.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
#!/usr/bin/env bash

if [ ! -z "$TEST" ]; then
echo -e "Running simple validator-engine test..."
validator-engine -h
exit $?
fi

# global config
if [ ! -z "$GLOBAL_CONFIG_URL" ]; then
echo -e "\e[1;32m[+]\e[0m Downloading provided global config."
Expand Down

0 comments on commit 4be738d

Please sign in to comment.