refactor build workflow
All checks were successful
Docker Build / Build and Push Images (push) Successful in 13s

This commit is contained in:
Seaswimmer 2024-08-03 00:25:19 -04:00
parent 70709ca4f1
commit 4c42b31580
Signed by: cswimr
GPG key ID: 3813315477F26F82

View file

@ -3,9 +3,10 @@ on:
push: push:
branches: branches:
- master - master
workflow_dispatch:
jobs: jobs:
Build: Build and Push Images:
runs-on: docker runs-on: docker
container: catthehacker/ubuntu:act-latest container: catthehacker/ubuntu:act-latest
steps: steps:
@ -19,10 +20,14 @@ jobs:
registry: www.coastalcommits.com registry: www.coastalcommits.com
username: Seaswimmer username: Seaswimmer
password: ${{ secrets.COASTALCOMMITSTOKEN }} password: ${{ secrets.COASTALCOMMITSTOKEN }}
- name: Build and push Docker image - name: Build and push MediaWiki image
uses: actions/docker-build-push@v5 uses: actions/docker-build-push@v5
with: with:
context: . context: .
file: Dockerfile file: Dockerfile
push: true push: true
tags: www.coastalcommits.com/galacticfactory/downloader:latest 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 }}