Skip to content

Commit

Permalink
upd. Dockerfile & release actions
Browse files Browse the repository at this point in the history
 - omit dev deps from lxc image
 - add linux/arm64 release
 - bump version
 - upd. gamedig
 - audit fix.
  • Loading branch information
a-sync committed Sep 7, 2024
1 parent ae2b2a3 commit ec3b861
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 14 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
uses: actions/checkout@v4

- name: Log in to the Container registry
uses: docker/login-action@5139682d94efc37792e6b54386b5b470a68a4737
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
Expand All @@ -32,9 +32,10 @@ jobs:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: Build and push Docker image
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ RUN rm -rf node_modules
FROM base

COPY --from=builder /app /app
RUN npm ci
RUN npm ci --omit=dev

EXPOSE 8080
CMD [ "npm", "run", "start" ]
19 changes: 10 additions & 9 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "game-server-watcher",
"version": "3.1.16",
"version": "3.1.18",
"description": "A simple discord/telegram/slack bot that can be hosted on a free service to monitor your game servers and players in style. 😎",
"exports": "./dist/server.js",
"type": "module",
Expand Down Expand Up @@ -28,7 +28,7 @@
"axios": "^1.6.5",
"discord.js": "^14.12.1",
"dotenv": "^16.3.2",
"gamedig": "^5.0.0",
"gamedig": "^5.1.3",
"grammy": "^1.20.3",
"lowdb": "^6.1.1",
"mustache": "^4.2.0"
Expand Down

0 comments on commit ec3b861

Please sign in to comment.