31 lines
902 B
YAML
31 lines
902 B
YAML
name: Build and publish
|
|
run-name: Build docker image and publish to registry
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '0 10,22 * * *'
|
|
push:
|
|
branches:
|
|
- 'main'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: ghcr.io/catthehacker/ubuntu:act-latest
|
|
steps:
|
|
- run: apt update
|
|
- run: apt install -y libatk1.0-0 libatk-bridge2.0-0 libasound2 libgdk-pixbuf2.0-0 libgtk-3-0 libgbm-dev libnss3-dev libxss-dev
|
|
name: Prepare environment
|
|
- uses: https://github.com/actions/checkout@v4
|
|
- name: Use Node.js
|
|
uses: https://github.com/actions/setup-node@v3
|
|
with:
|
|
node-version: '20.18'
|
|
- run: npm i
|
|
name: Install dependencies
|
|
- run: node index.mjs
|
|
name: Run app
|
|
env:
|
|
GHOSTFOLIO_SECURITY_TOKEN: ${{ secrets.GHOSTFOLIO_SECURITY_TOKEN }}
|
|
GHOSTFOLIO_HOST: ${{ secrets.GHOSTFOLIO_HOST }} |