Skip to content

fix: update migrations #28

fix: update migrations

fix: update migrations #28

Workflow file for this run

name: Build and Push Docker Images
on:
push:
branches: [ main, leafd/launch, manitej/app ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
lfs: true
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set tag prefix
id: tag-prefix
run: |
if [ "${{ github.ref_name }}" = "main" ]; then
echo "prefix=prod-" >> $GITHUB_OUTPUT
else
echo "prefix=staging-" >> $GITHUB_OUTPUT
fi
- name: Build and push owl-api
uses: docker/build-push-action@v5
with:
context: .
file: ./owl-api/Dockerfile
tags: |
ghcr.io/${{ github.repository }}/owl-api:latest
ghcr.io/${{ github.repository }}/owl-api:${{ steps.tag-prefix.outputs.prefix }}${{ github.sha }}
push: true
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Build and push lark-ui
uses: docker/build-push-action@v5
with:
context: .
file: ./lark-ui/Dockerfile
tags: |
ghcr.io/${{ github.repository }}/lark-ui:latest
ghcr.io/${{ github.repository }}/lark-ui:${{ steps.tag-prefix.outputs.prefix }}${{ github.sha }}
push: true
cache-from: type=gha
cache-to: type=gha,mode=max