Skip to content

Commit

Permalink
Merge pull request #1 from NIAEFEUP/chore/prepare-for-niployments
Browse files Browse the repository at this point in the history
chore: prepare for niployments
  • Loading branch information
limwa authored Jun 25, 2024
2 parents c587306 + 03209bc commit b72ab9d
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 125 deletions.
1 change: 0 additions & 1 deletion .env.example

This file was deleted.

122 changes: 0 additions & 122 deletions .github/workflows/ci-cd.yml

This file was deleted.

21 changes: 21 additions & 0 deletions .github/workflows/niployments.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Deploy

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Upload to NIployments register
uses: NIAEFEUP/[email protected]
with:
docker_dockerfile: Dockerfile
docker_context: .
docker_target: prod
NIPLOYMENTS_REGISTRY_URL: ${{ vars.NIPLOYMENTS_REGISTRY_URL }}
NIPLOYMENTS_REGISTRY_USERNAME: ${{ vars.NIPLOYMENTS_REGISTRY_USERNAME }}
NIPLOYMENTS_REGISTRY_PASSWORD: ${{ secrets.NIPLOYMENTS_REGISTRY_PASSWORD }}
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ COPY package-lock.json .

RUN npm ci

COPY .env .
COPY postcss.config.js .
COPY svelte.config.js .
COPY tailwind.config.js .
Expand Down
1 change: 0 additions & 1 deletion src/lib/server/prisma.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { PrismaClient } from "@prisma/client";

const prisma = new PrismaClient();
await prisma.$connect();
export default prisma;

0 comments on commit b72ab9d

Please sign in to comment.