Skip to content

Add build workflow

Add build workflow #1

Workflow file for this run

name: Docker Image CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

Check failure on line 16 in .github/workflows/docker-image.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/docker-image.yml

Invalid workflow file

You have an error in your yaml syntax on line 16
- 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