24 lines
710 B
YAML
24 lines
710 B
YAML
name: Build and publish
|
|
run-name: Build docker image and publish to registry
|
|
on: [push]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: catthehacker/ubuntu:act-latest
|
|
steps:
|
|
- 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: apt-get install chromium-browser
|
|
name: Install chromium
|
|
- 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 }} |