refactor: update dockerfile

This commit is contained in:
Mauricio Siu
2024-10-27 21:53:02 -06:00
parent e35559156a
commit c8673311ea
11 changed files with 269 additions and 43 deletions

30
.github/workflows/deploy.yml vendored Normal file
View File

@@ -0,0 +1,30 @@
name: Build Docker images
on:
push:
branches: ["main"]
jobs:
build-and-push-image-website:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile.website
push: true
tags: dokploy/website:latest
platforms: linux/amd64

24
.github/workflows/pull-request.yml vendored Normal file
View File

@@ -0,0 +1,24 @@
name: Pull Request
on:
pull_request:
branches: [main]
env:
HUSKY: 0
jobs:
lint-and-typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 18.18.0
cache: "pnpm"
- run: pnpm install --frozen-lockfile
- run: pnpm biome ci
- run: pnpm typecheck