boring.tools-poc/.gitea/workflows/main.yaml
Lars Hampe d2ee997ac7
All checks were successful
Build and Push Docker Image / tests (push) Successful in 35s
Build and Push Docker Image / build (push) Successful in 2m35s
Add testing ci pipeline (#1)
Reviewed-on: boring.tools/boring.tools#1
Co-authored-by: Lars Hampe <hello@hashdot.co>
Co-committed-by: Lars Hampe <hello@hashdot.co>
2024-10-01 17:04:13 +00:00

51 lines
1.1 KiB
YAML

name: Build and Push Docker Image
run-name: ${{ gitea.actor }}
on:
push:
branches:
- main
jobs:
tests:
uses: ./.gitea/workflows/test.yaml
build:
needs: [tests]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Use Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.1.29
- name: Install dependencies
run: bun install
- name: Build
run: bun run build
env:
NODE_ENV: production
VITE_CLERK_PUBLISHABLE_KEY: ${{ vars.CLERK_KEY }}
- name: Set docker chmod (temp solution)
run: sudo chmod 666 /var/run/docker.sock
- name: Docker - Login
uses: docker/login-action@v1
with:
registry: git.hashdot.co
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and Push Website
run: bun docker:website
- name: Build and Push API
run: bun docker:api
- name: Build and Push App
run: bun docker:app