Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/workflows/code_check.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Linter & Formatter Check
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Install modules
run: npm ci
- name: Run Biome
run: npx biome check .
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Install modules
run: npm ci
- name: Run Biome
run: npx biome check .
108 changes: 54 additions & 54 deletions .github/workflows/container_build.yml
Original file line number Diff line number Diff line change
@@ -1,63 +1,63 @@
name: Build Container Image Steam Update Dispatcher

on:
workflow_dispatch:
schedule:
- cron: "0 5 * * 1"
push:
branches: ["main"]
pull_request:
branches: ["main"]
workflow_dispatch:
schedule:
- cron: "0 5 * * 1"
push:
branches: ["main"]
pull_request:
branches: ["main"]

concurrency:
group: ${{ github.workflow }}
group: ${{ github.workflow }}

env:
TITLE: Steam Update Dispatcher
GHCR_SLUG: ghcr.io/steamtracking/steam-update-dispatcher
TITLE: Steam Update Dispatcher
GHCR_SLUG: ghcr.io/steamtracking/steam-update-dispatcher

jobs:
image-build:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read

steps:
- name: Checkout repository
uses: actions/checkout@v7

- name: Docker meta
id: meta
uses: docker/metadata-action@v6
with:
images: |
${{ env.GHCR_SLUG }}
labels: |
maintainer=${{ github.repository_owner }}
org.opencontainers.image.vendor=${{ github.repository_owner }}
org.opencontainers.image.title=${{ env.TITLE }}

- name: Setup Docker buildx
uses: docker/setup-buildx-action@v4

# Login against a Docker registry except on PR
# https://github.com/docker/login-action
- name: Log into registry
if: github.event_name != 'pull_request'
uses: docker/login-action@v4
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action
- name: Build and push Docker image
id: build-and-push
uses: docker/build-push-action@v7
with:
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ env.GHCR_SLUG }}:latest
cache-from: ${{ env.GHCR_SLUG }}:latest
labels: ${{ steps.meta.outputs.labels }}
image-build:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read

steps:
- name: Checkout repository
uses: actions/checkout@v7

- name: Docker meta
id: meta
uses: docker/metadata-action@v6
with:
images: |
${{ env.GHCR_SLUG }}
labels: |
maintainer=${{ github.repository_owner }}
org.opencontainers.image.vendor=${{ github.repository_owner }}
org.opencontainers.image.title=${{ env.TITLE }}

- name: Setup Docker buildx
uses: docker/setup-buildx-action@v4

# Login against a Docker registry except on PR
# https://github.com/docker/login-action
- name: Log into registry
if: github.event_name != 'pull_request'
uses: docker/login-action@v4
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action
- name: Build and push Docker image
id: build-and-push
uses: docker/build-push-action@v7
with:
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ env.GHCR_SLUG }}:latest
cache-from: ${{ env.GHCR_SLUG }}:latest
labels: ${{ steps.meta.outputs.labels }}
2 changes: 1 addition & 1 deletion config/config.example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ apps:
- repo: "steamtracking/gametracking-deadlock"
#access_token:
workflow_id: update.yml
branch: master
branch: master
12 changes: 6 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
services:
steam-watcher:
build: .
container_name: steam-update-dispatcher
volumes:
- ./config/:/usr/src/app/config/
restart: always
steam-watcher:
build: .
container_name: steam-update-dispatcher
volumes:
- ./config/:/usr/src/app/config/
restart: always
108 changes: 72 additions & 36 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"steam-user": "^5.0.10"
},
"devDependencies": {
"@biomejs/biome": "2.5.15"
"@biomejs/biome": "2.6.5"
},
"scripts": {
"start": "node src/bot.mjs",
Expand Down
Loading