-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Update deps, add notifier, add sitemap updater
* Add pushbullet notifications * Updated packages * Added Makefile * Added docker-compose.yaml * Added sitemap.xml updating
- Loading branch information
1 parent
a48832d
commit cd38069
Showing
1,207 changed files
with
3,860 additions
and
484 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
IMAGE_NAME = ghcr.io/infosecstreams/streamstatus | ||
IMAGE_TAG = $(shell git describe --tags --always --dirty --long) | ||
|
||
.PHONY: help | ||
help: | ||
@echo "make build-ss" | ||
@echo "make run-ss" | ||
@echo "make push-ss" | ||
@echo "make all" | ||
|
||
|
||
.PHONY: build-ss | ||
build-ss: | ||
docker build --build-arg VERSION=$(IMAGE_TAG) -t $(IMAGE_NAME):$(IMAGE_TAG) . | ||
|
||
.PHONY: run-ss | ||
run-ss: build-ss | ||
docker run -it --rm -p 8080:8080 \ | ||
-e SS_SECRETKEY=secret \ | ||
-e SS_TOKEN=token \ | ||
-e SS_USERNAME=username \ | ||
-e TW_CLIENT_ID=client_id \ | ||
-e TW_CLIENT_SECRET=client_secret \ | ||
-e SS_PUSHBULLET_APIKEY=myAPIkey \ | ||
-e SS_PUSHBULLET_DEVICES=myDevice,anotherDevice \ | ||
$(IMAGE_NAME):$(IMAGE_TAG) | ||
|
||
.PHONY: push | ||
push-ss: build-ss | ||
@echo "Are you sure you want to push? [y/N] " && read ans && [ $${ans:-N} = y ] | ||
docker tag $(IMAGE_NAME):$(IMAGE_TAG) $(IMAGE_NAME):latest | ||
docker push $(IMAGE_NAME):$(IMAGE_TAG) | ||
docker push $(IMAGE_NAME):latest | ||
|
||
.PHONY: all | ||
all: push-ss | ||
|
||
clean: | ||
docker rmi $(IMAGE_NAME):$(IMAGE_TAG) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
version: 3 | ||
|
||
version: "3" | ||
services: | ||
# streamstatus to receive event requests from twitch | ||
streamstatus: | ||
image: ghcr.io/infosecstreams/streamstatus:latest | ||
ports: | ||
- "8080:8080" | ||
env_file: ./streamstatus.env | ||
env_file: streamstatus.env | ||
restart: always | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
depends_on: [] | ||
#- nginx |
Oops, something went wrong.