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:
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 }}