diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 00000000..b8a04784 --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -0,0 +1,25 @@ +name: Docker Image CI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + + build: + + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Run the build.sh scripts + run: if [ -v secrets.DOCKER_HUB_RW_TOKEN ] + then + echo "Secrets detected, can't run build script" + else + # find the build.sh scripts and execute them + find . -iname 'build.sh' -exec ./{} \; + fi