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 20489ad
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
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

0 comments on commit 20489ad

Please sign in to comment.