refactor build workflow
All checks were successful
Docker Build / Build and Push Images (push) Successful in 13s
All checks were successful
Docker Build / Build and Push Images (push) Successful in 13s
This commit is contained in:
parent
70709ca4f1
commit
4c42b31580
1 changed files with 7 additions and 2 deletions
|
@ -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 }}
|
Loading…
Reference in a new issue