Skip to content

Commit

Permalink
👷 Improve CI
Browse files Browse the repository at this point in the history
  • Loading branch information
5ika committed Aug 18, 2023
1 parent e86433e commit a7b4b8d
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ name: Build & Publish Docker image for demo

on:
push:
paths-ignore:
- "lib/**"
branches:
- main

jobs:
build-publish-docker:
build-publish-docker-demo:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/build-docker-server.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build & Publish Docker image for demo

on:
push:
paths:
- "server-example/**"
branches:
- main

jobs:
build-publish-docker-server:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build
uses: docker/build-push-action@v4
with:
context: ./server-example
push: true
tags: octree/fidbee-server:latest
4 changes: 4 additions & 0 deletions server-example/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
README.md
.env.example
Dockerfile
.gitignore
8 changes: 8 additions & 0 deletions server-example/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM denoland/deno:alpine-1.35.2

WORKDIR /app
COPY ./server-example .

EXPOSE 8080

CMD deno run -A server.ts

0 comments on commit a7b4b8d

Please sign in to comment.