2024-01-05 08:02:44 -05:00
|
|
|
|
|
|
|
name: Build Documentation
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2024-01-05 08:07:58 -05:00
|
|
|
- main
|
2024-01-05 08:02:44 -05:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
Build:
|
|
|
|
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: coastalcommits.com
|
|
|
|
username: SeaswimmerTheFsh
|
|
|
|
password: ${{ secrets.COASTALCOMMITSTOKEN }}
|
|
|
|
- name: Build and push Docker image
|
|
|
|
uses: actions/docker-build-push@v5
|
|
|
|
with:
|
|
|
|
context: .
|
|
|
|
file: Dockerfile
|
|
|
|
push: true
|
|
|
|
tags: coastalcommits.com/seaswimmerthefsh/seacogs-docs:latest
|
|
|
|
- name: Update Portainer stack
|
2024-01-05 08:19:36 -05:00
|
|
|
uses: actions/http@v1
|
2024-01-05 08:02:44 -05:00
|
|
|
with:
|
|
|
|
url: ${{ secrets.PORTAINER_WEBHOOK }}
|