From 4c42b3158010d5e49a6379da3f231b4214049e7b Mon Sep 17 00:00:00 2001 From: Seaswimmer Date: Sat, 3 Aug 2024 00:25:19 -0400 Subject: [PATCH] refactor build workflow --- .forgejo/workflows/{docker-build.yml => build.yml} | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) rename .forgejo/workflows/{docker-build.yml => build.yml} (68%) diff --git a/.forgejo/workflows/docker-build.yml b/.forgejo/workflows/build.yml similarity index 68% rename from .forgejo/workflows/docker-build.yml rename to .forgejo/workflows/build.yml index 4bab2d5..e24bbfa 100644 --- a/.forgejo/workflows/docker-build.yml +++ b/.forgejo/workflows/build.yml @@ -3,9 +3,10 @@ on: push: branches: - master + workflow_dispatch: jobs: - Build: + Build and Push Images: runs-on: docker container: catthehacker/ubuntu:act-latest steps: @@ -19,10 +20,14 @@ jobs: registry: www.coastalcommits.com username: Seaswimmer password: ${{ secrets.COASTALCOMMITSTOKEN }} - - name: Build and push Docker image + - name: Build and push MediaWiki image uses: actions/docker-build-push@v5 with: context: . file: Dockerfile push: true tags: www.coastalcommits.com/galacticfactory/downloader:latest + - name: Restart the MediaWiki stack + run: | + echo "Sending request to Portainer to restart the Downloader stack and pull the latest image" + curl -X POST --insecure ${{ secrets.BUILDWEBHOOK }}