Files
bpi-stock-price-scraper/.gitea/workflows/sync-prices.yaml
T
Lino Silva 00e61c3fea
Build and publish / build (push) Failing after 10s
Changed cron
2024-11-06 23:40:07 +00:00

31 lines
907 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: catthehacker/ubuntu:act-latest
steps:
- run: apt update
- run: apt install -y libgconf-2-4 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 }}