Skip to content

Commit 057165d

Browse files
committed
Update build, cron, and scripts
1 parent 8a48c15 commit 057165d

File tree

4 files changed

+21
-2
lines changed

4 files changed

+21
-2
lines changed

.github/workflows/build-push-docker.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,18 @@ jobs:
99
steps:
1010
- name: Check out the repo
1111
uses: actions/checkout@v2
12-
- name: Push to Docker Hub
12+
- name: Push hltv-featured to Docker Hub
1313
uses: docker/[email protected]
1414
with:
1515
username: ${{ secrets.DOCKER_USERNAME }}
1616
password: ${{ secrets.DOCKER_PASSWORD }}
1717
repository: ${{ secrets.DOCKER_USERNAME }}/hltv-featured
1818
tag_with_ref: true
19+
- name: Push hltv-featured-playwright to Docker Hub
20+
uses: docker/[email protected]
21+
with:
22+
username: ${{ secrets.DOCKER_USERNAME }}
23+
password: ${{ secrets.DOCKER_PASSWORD }}
24+
repository: ${{ secrets.DOCKER_USERNAME }}/hltv-featured-playwright
25+
build_args: NODEIMG=mcr.microsoft.com/playwright:v1.31.0-focal
26+
tag_with_ref: true

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ This is a set of nodejs applications to get data about upcoming CSGO matches and
77
- `src/backend` handles subscribers requests
88
- `src/notifier` deliveries data to subscribers
99
- `src/scraper` parses HLTV.org/matches
10+
- `src/playwright-scraper` same as scraper but uses playwright
1011

1112
## Configure server
1213

crond/crontab

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
0 5 * * * docker start hltv-featured-notifier
2-
55 4-21 * * * docker start hltv-featured-scraper
2+
55 4-21 * * * docker start hltv-featured-playwright-scraper
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#! /bin/sh
2+
3+
docker create \
4+
--name=hltv-featured-playwright-scraper \
5+
--env-file /???/.env \
6+
--env FIREBASE_CONFIG=/data/cert.json \
7+
--mount type=bind,src=/???/cert.json,dst=/data/cert.json,ro \
8+
--ipc=host --user pwuser --security-opt seccomp=/???/seccomp_profile.json \
9+
mbelsky/hltv-featured-playwright:v??? \
10+
node /app/src/playwright-scraper/playwright-scraper.js

0 commit comments

Comments
 (0)