From 268ae390017041dac0e414602ce3c5295abb66b8 Mon Sep 17 00:00:00 2001 From: GilbN Date: Sun, 15 May 2022 16:58:50 +0200 Subject: [PATCH] manual build mods --- .github/workflows/auto-build.yml | 48 +++++++++++++++++++++++++++++++- 1 file changed, 47 insertions(+), 1 deletion(-) diff --git a/.github/workflows/auto-build.yml b/.github/workflows/auto-build.yml index fef13e45..82f619a1 100644 --- a/.github/workflows/auto-build.yml +++ b/.github/workflows/auto-build.yml @@ -5,6 +5,40 @@ on: - master paths: - 'docker-mods/**' + workflow_dispatch: + inputs: + app: + description: 'Select an app' + required: true + type: choice + options: + - radarr + - sonarr + - readarr + - lidarr + - bazarr + - whisparr + - prowlarr + - plex + - jellyfin + - emby + - sabnzbd + - synclounge + - transmission + - calibre-web + - lazylibrarian + - mylar3 + - duplicati + - tautulli + - vuetorrent + - deluge + - jackett + - librespeed + - nzbget + - qbittorrent + - rutorrent + - swag + - thelounge jobs: push_to_ghcr_io: runs-on: ubuntu-latest @@ -24,6 +58,7 @@ jobs: username: ${{ github.repository_owner }} password: ${{ secrets.GH_PAT }} - name: find correct directory then build&push + if: ${{ github.event_name == 'push' }} run: | for i in ${{ steps.getfile.outputs.files }} do @@ -38,6 +73,11 @@ jobs: docker build docker-mods/$directory --tag ghcr.io/gilbn/theme.park:$directory docker push ghcr.io/gilbn/theme.park:$directory done + - name: manually build + if: ${{ github.event.inputs.app }} + run: | + docker build docker-mods/${{ github.event.inputs.app }} --tag ghcr.io/gilbn/theme.park:${{ github.event.inputs.app }} + docker push ghcr.io/gilbn/theme.park:${{ github.event.inputs.app }} push_to_dockerhub: runs-on: ubuntu-latest steps: @@ -55,6 +95,7 @@ jobs: username: ${{ secrets.DH_USER }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: find correct directory then build&push + if: ${{ github.event_name == 'push' }} run: | for i in ${{ steps.getfile.outputs.files }} do @@ -68,4 +109,9 @@ jobs: fi docker build docker-mods/$directory --tag gilbn/theme.park:$directory docker push gilbn/theme.park:$directory - done \ No newline at end of file + done + - name: manually build + if: ${{ github.event.inputs.app }} + run: | + docker build docker-mods/${{ github.event.inputs.app }} --tag ghcr.io/gilbn/theme.park:${{ github.event.inputs.app }} + docker push ghcr.io/gilbn/theme.park:${{ github.event.inputs.app }} \ No newline at end of file