Downloader/.forgejo/workflows/build.yml

34 lines
1.1 KiB
YAML
Raw Normal View History

2024-08-03 00:15:02 -04:00
name: Docker Build
on:
push:
branches:
- master
2024-08-03 00:25:19 -04:00
workflow_dispatch:
2024-08-03 00:15:02 -04:00
jobs:
2024-08-03 00:25:19 -04:00
Build and Push Images:
2024-08-03 00:15:02 -04:00
runs-on: docker
2024-12-27 23:20:58 -05:00
container: catthehacker/ubuntu:act-latest@sha256:89367f3c5437699c6b43fa941041725bcc77682a46f2bbe6557541e384d9cedb
2024-08-03 00:15:02 -04:00
steps:
- name: Checkout code
2024-12-27 23:20:58 -05:00
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
2024-08-03 00:15:02 -04:00
with:
token: ${{ secrets.COASTALCOMMITSTOKEN }}
- name: Login to CoastalCommits
uses: actions/docker-login@v3
with:
2024-08-03 00:20:33 -04:00
registry: www.coastalcommits.com
username: cswimr
2024-08-03 00:15:02 -04:00
password: ${{ secrets.COASTALCOMMITSTOKEN }}
2024-08-03 00:28:12 -04:00
- name: Build and push Downloader image
2024-08-03 00:15:02 -04:00
uses: actions/docker-build-push@v5
with:
context: .
file: Dockerfile
push: true
tags: www.coastalcommits.com/galacticfactory/downloader:latest
2024-08-03 00:28:12 -04:00
- name: Restart the Downloader stack
2024-08-03 00:25:19 -04:00
run: |
echo "Sending request to Portainer to restart the Downloader stack and pull the latest image"
curl -X POST --insecure ${{ secrets.BUILDWEBHOOK }}