Skip to content

Commit

Permalink
👷 Add CI, update Dockerfile and README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
GiyoMoon committed Oct 25, 2021
1 parent e542e50 commit 5c04cbf
Show file tree
Hide file tree
Showing 7 changed files with 1,025 additions and 496 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: ci

on:
push:
branches:
- 'main'

jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
tags: ghcr.io/witchtrade/witchitstats:latest
674 changes: 674 additions & 0 deletions COPYING

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,5 @@ COPY ./package*.json ./
RUN npm install --only=production

COPY --from=development /usr/src/app/dist ./dist
COPY .env ./

CMD ["node", "dist/app"]
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
![WitchTrade](https://i.imgur.com/Wg8PVxR.png)

# Witch It Stats
Generates stats of the official game servers of Witch It.
Generates stats of the official game servers of Witch It. Visit https://preview.witchtrade.org/gameservers/stats to see it in action!
Loading

0 comments on commit 5c04cbf

Please sign in to comment.