GilbN
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
3 deletions
-
.github/workflows/auto-build.yml
|
@ -4,7 +4,9 @@ on: |
|
|
branches: [ docker-mods ] |
|
|
branches: [ docker-mods ] |
|
|
paths: |
|
|
paths: |
|
|
- '**/Dockerfile' |
|
|
- '**/Dockerfile' |
|
|
|
|
|
defaults: |
|
|
|
|
|
run: |
|
|
|
|
|
working-directory: ./your_working_dir |
|
|
jobs: |
|
|
jobs: |
|
|
job1: |
|
|
job1: |
|
|
runs-on: ubuntu-latest |
|
|
runs-on: ubuntu-latest |
|
@ -25,7 +27,7 @@ jobs: |
|
|
registry: ghcr.io |
|
|
registry: ghcr.io |
|
|
username: ${{ github.repository_owner }} |
|
|
username: ${{ github.repository_owner }} |
|
|
password: ${{ secrets.GH_PAT }} |
|
|
password: ${{ secrets.GH_PAT }} |
|
|
|
|
|
|
|
|
- name: echo the changed files and build&push |
|
|
- name: echo the changed files and build&push |
|
|
run: | |
|
|
run: | |
|
|
for i in ${{ steps.getfile.outputs.files }} |
|
|
for i in ${{ steps.getfile.outputs.files }} |
|
@ -36,6 +38,6 @@ jobs: |
|
|
elif [ "$i" == *.md ]; then |
|
|
elif [ "$i" == *.md ]; then |
|
|
continue # Skip markdown files |
|
|
continue # Skip markdown files |
|
|
fi |
|
|
fi |
|
|
docker build --file $i --tag theme.park:$directory |
|
|
docker build $i --tag theme.park:$directory |
|
|
docker push ghcr.io/gilbn/theme.park:$directory |
|
|
docker push ghcr.io/gilbn/theme.park:$directory |
|
|
done |
|
|
done |
|
|