Skip to content

chore: update railway.toml #164

chore: update railway.toml

chore: update railway.toml #164

Workflow file for this run

name: Build and Push to Docker Registry
on:
push:
branches:
- develop
jobs:
build-push:
runs-on: ubuntu-latest
strategy:
matrix:
target: [app, db-migrate]
include:
- target: app
file: Dockerfile
image: teable
- target: db-migrate
file: Dockerfile.db-migrate
image: teable-db-migrate
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Login to GitHub container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.PACKAGES_KEY }}
- name: Login to Ali container registry
uses: docker/login-action@v3
with:
registry: registry.cn-shenzhen.aliyuncs.com
username: ${{ secrets.ALI_DOCKER_USERNAME }}
password: ${{ secrets.ALI_DOCKER_PASSWORD }}
- name: 📦 Build and push
uses: ./.github/actions/docker-build-push
with:
context: .
dockerfile: dockers/teable/${{ matrix.file }}
push: true
push-images: |
registry.cn-shenzhen.aliyuncs.com/teable/${{ matrix.image }}
ghcr.io/teableio/${{ matrix.image }}
push-tags: |
type=ref,event=branch
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=sha
# set latest tag for default branch
type=raw,value=latest,enable={{is_default_branch}}
cache-from: type=registry,ref=ghcr.io/teableio/${{ matrix.image }}:buildcache
cache-to: type=registry,ref=ghcr.io/teableio/${{ matrix.image }}:buildcache,mode=max