Skip to content

Commit

Permalink
Add build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mkhansenbot committed Sep 3, 2024
1 parent 333a1f6 commit d105a44
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Docker Image CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:

build:

runs-on: ubuntu-latest

steps:
- 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

0 comments on commit d105a44

Please sign in to comment.