Skip to content
Merged
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
1765e9e
append-tag on mod build
GilbN Sep 3, 2022
acddcf1
Qbit s6 v3 hybrid mod
GilbN Sep 3, 2022
a359913
add user folder
GilbN Sep 3, 2022
a80f0d2
worky work?
GilbN Sep 3, 2022
a18f4b3
exec
GilbN Sep 3, 2022
52e9c6d
add mod to init-mods-end
GilbN Sep 3, 2022
3393062
Swag and vuetorrent s6-v3 mods
GilbN Sep 3, 2022
593f4ac
convert all mods to support s6-v3
GilbN Sep 3, 2022
e0c55a7
forgot user folder
GilbN Sep 3, 2022
17abb62
chmod +x
GilbN Sep 3, 2022
6b04917
build-app-mods test
GilbN Sep 3, 2022
523132a
syntax fix
GilbN Sep 3, 2022
2787cf1
syntax fix
GilbN Sep 3, 2022
bda39b7
for loop fix
GilbN Sep 3, 2022
e1c6b2a
Merge branch 'develop' into testing
GilbN Oct 22, 2022
d926e93
testing qbit noscript
GilbN Oct 22, 2022
7b3bda2
sed body tag
GilbN Oct 23, 2022
bb210ad
sed body only
GilbN Oct 23, 2022
502f0bc
dockerbuild: bump ver. Replace depricated commands
GilbN Oct 23, 2022
7eecf14
append input tag
GilbN Oct 23, 2022
2520432
Bump checkout to use node16
GilbN Oct 23, 2022
8405de7
docker syntax fix
GilbN Oct 23, 2022
c45dbf6
add source input
GilbN Oct 23, 2022
33e9c6a
update tag env
GilbN Oct 23, 2022
7a3e634
move input tag
GilbN Oct 23, 2022
f3deb31
add tag to cache
GilbN Oct 23, 2022
c03b10d
add source
GilbN Oct 23, 2022
b877de3
make arch env
GilbN Oct 23, 2022
639a888
add input to normal tag
GilbN Oct 23, 2022
e2702f1
aasdsad
GilbN Oct 23, 2022
5888815
asdasd
GilbN Oct 23, 2022
6b37369
remove extra tag
GilbN Oct 23, 2022
a6501d6
purge manifest on push
GilbN Feb 12, 2023
3e0aa69
test2
GilbN Feb 12, 2023
a9d7191
add driver options
GilbN Feb 12, 2023
832fdfd
Merge branch 'develop' into testing
GilbN Mar 4, 2023
5b242cc
Merge branch 'develop' into testing
GilbN May 29, 2023
5ccf1d2
if test
GilbN May 29, 2023
c7db667
Merge branch 'develop' into testing
GilbN Aug 1, 2023
0e2ac43
Build mods on push
GilbN Aug 1, 2023
9ff794b
combine jobs
GilbN Aug 1, 2023
05a28b7
Test
GilbN Aug 1, 2023
24d7f71
use var for username
GilbN Aug 1, 2023
22c2840
Test
GilbN Aug 1, 2023
03058cc
use secrets gh user
GilbN Aug 1, 2023
7dec9e9
Test
GilbN Aug 1, 2023
fdcfad8
.
GilbN Aug 1, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
96 changes: 50 additions & 46 deletions .github/workflows/auto-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ on:
push:
branches:
- master
- develop
- testing
paths:
- 'docker-mods/**'
- '**/docker-mods/**'
workflow_dispatch:
inputs:
app:
Expand Down Expand Up @@ -43,6 +45,7 @@ on:
append-tag:
required: false
description: 'Append a the tag with "-custom" e.g :radarr-testing'

jobs:
push_to_ghcr_io:
runs-on: ubuntu-latest
Expand All @@ -51,89 +54,90 @@ jobs:
uses: actions/checkout@v3.1.0
with:
fetch-depth: 0
- name: get changed files
id: getfile
run: |
echo "files=$(git diff-tree --no-commit-id --name-only -r ${{ github.sha }} docker-mods/| xargs)" >> $GITHUB_ENV
- name: Login to GitHub Container Registry
uses: docker/login-action@v2.1.0
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
username: ${{ secrets.GHCR_USER }}
password: ${{ secrets.GH_PAT }}
- name: find correct directory then build&push
- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch
- name: build all on push
if: ${{ github.event_name == 'push' }}
run: |
for i in ${{ env.files }}
do
directory="$( echo $i | cut -d'/' -f2 -s )"
if [ -z "$directory" ]; then
continue # Skip root dir
elif [ "$i" == *.md ]; then
continue # Skip markdown files
elif [ "$i" == *.yml ]; then
continue # Skip YAML files
fi
docker build docker-mods/$directory --tag ghcr.io/gilbn/theme.park:$directory
docker push ghcr.io/gilbn/theme.park:$directory
done
branch=${{ steps.extract_branch.outputs.branch }}

if [ "$branch" = "master" ]; then
branch=""
else
branch="-$branch"
fi
for dir in docker-mods/*;
do
app="$( echo "$dir" | cut -d'/' -f2 -s )"
docker build docker-mods/$app --tag ghcr.io/${{ secrets.GHCR_USER }}/theme.park:$app$branch
docker push ghcr.io/${{ secrets.GHCR_USER }}/theme.park:$app$branch
done
- name: manually build
if: ${{ github.event.inputs.app && github.event.inputs.app != 'build-all-the-mods' }}
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 push 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/${{ secrets.GHCR_USER }}/theme.park:${{ github.event.inputs.app }}${{ github.event.inputs.append-tag }}
docker push ghcr.io/${{ secrets.GHCR_USER }}/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 }}
docker build docker-mods/$app --tag ghcr.io/${{ secrets.GHCR_USER }}/theme.park:$app${{ github.event.inputs.append-tag }}
docker push ghcr.io/${{ secrets.GHCR_USER }}/theme.park:$app${{ github.event.inputs.append-tag }}
done

push_to_dockerhub:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3.1.0
with:
fetch-depth: 0
- name: get changed files
id: getfile
run: |
echo "files=$(git diff-tree --no-commit-id --name-only -r ${{ github.sha }} docker-mods/| xargs)" >> $GITHUB_ENV
- name: Login to Docker Hub
uses: docker/login-action@v2.1.0
with:
username: ${{ secrets.DH_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: find correct directory then build&push
- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch
- name: build all on push
if: ${{ github.event_name == 'push' }}
run: |
for i in ${{ env.files }}
do
directory="$( echo $i | cut -d'/' -f2 -s )"
if [ -z "$directory" ]; then
continue # Skip root dir
elif [ "$i" == *.md ]; then
continue # Skip markdown files
elif [ "$i" == *.yml ]; then
continue # Skip YAML files
fi
docker build docker-mods/$directory --tag gilbn/theme.park:$directory
docker push gilbn/theme.park:$directory
done
branch=${{ steps.extract_branch.outputs.branch }}

if [ "$branch" = "master" ]; then
branch=""
else
branch="-$branch"
fi
for dir in docker-mods/*;
do
app="$( echo "$dir" | cut -d'/' -f2 -s )"
docker build docker-mods/$app --tag ${{ secrets.DH_USER }}/theme.park:$app$branch
docker push ${{ secrets.DH_USER }}/theme.park:$app$branch
done
- name: manually build
if: ${{ github.event.inputs.app && github.event.inputs.app != 'build-all-the-mods' }}
run: |
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 build docker-mods/${{ github.event.inputs.app }} --tag ${{ secrets.DH_USER }}/theme.park:${{ github.event.inputs.app }}${{ github.event.inputs.append-tag }}
docker push ${{ secrets.DH_USER }}/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 }}
docker build docker-mods/$app --tag ${{ secrets.DH_USER }}/theme.park:$app${{ github.event.inputs.append-tag }}
docker push ${{ secrets.DH_USER }}/theme.park:$app${{ github.event.inputs.append-tag }}
done