Browse Source

add build-all-mods action step

pull/424/head
GilbN 2 years ago
parent
commit
14545eede8
  1. 23
      .github/workflows/auto-build.yml

23
.github/workflows/auto-build.yml

@ -39,6 +39,7 @@ on:
- rutorrent - rutorrent
- swag - swag
- thelounge - thelounge
- build-all-the-mods
append-tag: append-tag:
required: false required: false
description: 'Append a the tag with "-custom" e.g :radarr-testing' description: 'Append a the tag with "-custom" e.g :radarr-testing'
@ -77,10 +78,19 @@ jobs:
docker push ghcr.io/gilbn/theme.park:$directory docker push ghcr.io/gilbn/theme.park:$directory
done done
- name: manually build - name: manually build
if: ${{ github.event.inputs.app }} if: ${{ github.event.inputs.app != 'build-all-the-mods' }}
run: | run: |
docker build docker-mods/${{ github.event.inputs.app }} --tag ghcr.io/gilbn/theme.park:${{ github.event.inputs.app }}${{ github.event.inputs.append-tag }} docker build docker-mods/${{ github.event.inputs.app }} --tag ghcr.io/gilbn/theme.park:${{ github.event.inputs.app }}${{ github.event.inputs.append-tag }}
docker push ghcr.io/gilbn/theme.park:${{ github.event.inputs.app }}${{ github.event.inputs.append-tag }} docker push ghcr.io/gilbn/theme.park:${{ github.event.inputs.app }}${{ github.event.inputs.append-tag }}
- name: manually build all mods
if: ${{ github.event.inputs.app == 'build-all-the-mods' }}
run: |
for dir in docker-mods/*;
do
app="$( echo "$dir" | cut -d'/' -f2 -s )"
docker build docker-mods/$app --tag ghcr.io/gilbn/theme.park:$app${{ github.event.inputs.append-tag }}
docker push ghcr.io/gilbn/theme.park:$app${{ github.event.inputs.append-tag }}
done
push_to_dockerhub: push_to_dockerhub:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@ -114,7 +124,16 @@ jobs:
docker push gilbn/theme.park:$directory docker push gilbn/theme.park:$directory
done done
- name: manually build - name: manually build
if: ${{ github.event.inputs.app }} if: ${{ github.event.inputs.app != 'build-all-the-mods' }}
run: | run: |
docker build docker-mods/${{ github.event.inputs.app }} --tag gilbn/theme.park:${{ github.event.inputs.app }}${{ github.event.inputs.append-tag }} docker build docker-mods/${{ github.event.inputs.app }} --tag gilbn/theme.park:${{ github.event.inputs.app }}${{ github.event.inputs.append-tag }}
docker push gilbn/theme.park:${{ github.event.inputs.app }}${{ github.event.inputs.append-tag }} docker push gilbn/theme.park:${{ github.event.inputs.app }}${{ github.event.inputs.append-tag }}
- name: manually build all mods
if: ${{ github.event.inputs.app == 'build-all-the-mods' }}
run: |
for dir in docker-mods/*;
do
app="$( echo "$dir" | cut -d'/' -f2 -s )"
docker build docker-mods/$app --tag gilbn/theme.park:$app${{ github.event.inputs.append-tag }}
docker push gilbn/theme.park:$app${{ github.event.inputs.append-tag }}
done

Loading…
Cancel
Save