Downloader/.forgejo/workflows/build.yml
cswimr 18b06f8b16
All checks were successful
Docker Build / Build and Push Images (push) Successful in 9s
change my username
Signed-off-by: cswimr <seaswimmerthefsh@gmail.com>
2024-10-16 11:14:33 -04:00

33 lines
1,005 B
YAML

name: Docker Build
on:
push:
branches:
- master
workflow_dispatch:
jobs:
Build and Push Images:
runs-on: docker
container: catthehacker/ubuntu:act-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
token: ${{ secrets.COASTALCOMMITSTOKEN }}
- name: Login to CoastalCommits
uses: actions/docker-login@v3
with:
registry: www.coastalcommits.com
username: cswimr
password: ${{ secrets.COASTALCOMMITSTOKEN }}
- name: Build and push Downloader image
uses: actions/docker-build-push@v5
with:
context: .
file: Dockerfile
push: true
tags: www.coastalcommits.com/galacticfactory/downloader:latest
- name: Restart the Downloader stack
run: |
echo "Sending request to Portainer to restart the Downloader stack and pull the latest image"
curl -X POST --insecure ${{ secrets.BUILDWEBHOOK }}