Skip to content

fix traefik ingress config #255

fix traefik ingress config

fix traefik ingress config #255

Workflow file for this run

name: blixter
on: [push]
jobs:
bun_build:
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Cache dependency
uses: actions/cache@v3
with:
path: ~/.bun/install/cache
key: bun-${{ hashFiles('**/bun.lockb') }}
- name: Install dependencies
run: bun install
- name: Build
run: bun run build
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: build-artifacts
path: |
apps/**/build
docker_build:
needs: bun_build
strategy:
matrix:
name: [frontend, jobs-handler, cron-jobs]
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Cached dependency
uses: actions/cache@v3
with:
path: ~/.bun/install/cache
key: bun-${{ hashFiles('**/bun.lockb') }}
- name: Production dependency
run: bun install --production
- name: Download build artifacts
uses: actions/download-artifact@v3
with:
name: build-artifacts
path: apps/
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Container registry login
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: ${{ matrix.name }}
uses: docker/build-push-action@v5
with:
push: true
context: .
file: ./apps/${{ matrix.name }}/Dockerfile
tags: ghcr.io/mp281x/blixter-${{ matrix.name }}:latest
cache-from: type=gha
cache-to: type=gha,mode=max