Skip to content

Commit

Permalink
Migrated to self hosted
Browse files Browse the repository at this point in the history
  • Loading branch information
isala404 committed Apr 12, 2024
1 parent 6f13b8b commit 653a6c7
Show file tree
Hide file tree
Showing 10 changed files with 60 additions and 4,875 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Release

on:
push:
branches:
- main

env:
IMAGE_NAME: ghcr.io/isala404/isala-me
DOCKER_BUILDKIT: 1

jobs:
build-publish:
permissions: write-all
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v2
- uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- run: docker build -t $IMAGE_NAME:latest .
- run: docker tag $IMAGE_NAME:latest $IMAGE_NAME:commit-${GITHUB_SHA:0:8}
- run: docker push $IMAGE_NAME --all-tags
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM oven/bun:1.0 as build
WORKDIR /app
COPY . .
RUN bun install
RUN bun run build

FROM oven/bun:1.0 AS production
WORKDIR /app
COPY --from=build /app/build .
RUN bun install dotenv
EXPOSE 3000
CMD ["bun", "-r", "dotenv/config", "index.js"]
Binary file added bun.lockb
Binary file not shown.
Loading

0 comments on commit 653a6c7

Please sign in to comment.