@@ -1,27 +0,0 @@
|
|||||||
# 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: docker compose build
|
|
||||||
# env:
|
|
||||||
# GHOSTFOLIO_SECURITY_TOKEN: ${{ secrets.GHOSTFOLIO_SECURITY_TOKEN }}
|
|
||||||
# GHOSTFOLIO_HOST: ${{ secrets.GHOSTFOLIO_HOST }}
|
|
||||||
# - name: Login to the Container registry
|
|
||||||
# uses: docker/login-action@v2
|
|
||||||
# with:
|
|
||||||
# registry: gitea.lino.cooking
|
|
||||||
# username: lino-authelia
|
|
||||||
# password: ${{ secrets.REGISTRY_PASS }}
|
|
||||||
# - name: Push to registry
|
|
||||||
# run: docker compose push
|
|
||||||
-24
@@ -1,24 +0,0 @@
|
|||||||
FROM ghcr.io/puppeteer/puppeteer:22
|
|
||||||
|
|
||||||
USER root
|
|
||||||
|
|
||||||
# Add user so we don't need --no-sandbox.
|
|
||||||
RUN mkdir -p /home/pptruser/Downloads /app \
|
|
||||||
&& chown -R pptruser:pptruser /home/pptruser \
|
|
||||||
&& chown -R pptruser:pptruser /app
|
|
||||||
|
|
||||||
# Run everything after as non-privileged user.
|
|
||||||
USER pptruser
|
|
||||||
|
|
||||||
# Install Puppeteer under /node_modules so it's available system-wide
|
|
||||||
COPY package.json /app/
|
|
||||||
COPY yarn.lock /app/
|
|
||||||
RUN cd /app/ && yarn
|
|
||||||
COPY index.mjs /app/
|
|
||||||
|
|
||||||
ARG GHOSTFOLIO_SECURITY_TOKEN
|
|
||||||
ARG GHOSTFOLIO_HOST
|
|
||||||
ENV GHOSTFOLIO_SECURITY_TOKEN=$GHOSTFOLIO_SECURITY_TOKEN
|
|
||||||
ENV GHOSTFOLIO_HOST=$GHOSTFOLIO_HOST
|
|
||||||
|
|
||||||
ENTRYPOINT ["/usr/local/bin/node", "/app/index.mjs"]
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
services:
|
|
||||||
scraper:
|
|
||||||
image: gitea.lino.cooking/lino-authelia/bpi-stock-price-scraper
|
|
||||||
environment:
|
|
||||||
- GHOSTFOLIO_SECURITY_TOKEN=${GHOSTFOLIO_SECURITY_TOKEN}
|
|
||||||
- GHOSTFOLIO_HOST=${GHOSTFOLIO_HOST}
|
|
||||||
build:
|
|
||||||
context: .
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
Generated
+1924
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user