Skip to content

Add build workflow (fix issue #35) #11

Add build workflow (fix issue #35)

Add build workflow (fix issue #35) #11

Workflow file for this run

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
env:
DOCKER_HUB_TOKEN: ${{ secrets.DOCKER_HUB_RW_TOKEN }}
run: |
if [ -n "$DOCKER_HUB_TOKEN" ]
then
echo "Secrets detected, can't run build script"
exit 1 # terminate and indicate error
else
# find the build.sh scripts and execute them
find . -iname 'build.sh' -exec ./{} \;
fi