chore: remove obsolete Dockerfile and entrypoint script; update migration workflow to display DATABASE_URL
Some checks failed
Migrate supabase / migrate (push) Failing after 16s

This commit is contained in:
2026-03-08 16:48:00 +01:00
parent 0dd5de4319
commit dbe3fb67b5
4 changed files with 4 additions and 107 deletions

View File

@@ -1,70 +0,0 @@
name: Build Docker Image
on:
push:
branches:
- main
tags:
- '*'
env:
GITEA_REGISTRY: ${{ gitea.server_url }}
GITEA_USERNAME: ${{ gitea.actor }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Determine image tag
id: tag
run: |
if [[ "${{ github.ref }}" == refs/tags/* ]]; then
TAG=${GITHUB_REF#refs/tags/}
elif [[ "${{ github.ref }}" == "refs/heads/main" ]]; then
TAG=main
else
echo "Not on main branch or a tag, skipping build"
exit 1
fi
echo "tag=$TAG" >> $GITHUB_OUTPUT
# Remove protocol from registry URL
REGISTRY="${{ env.GITEA_REGISTRY }}"
REGISTRY="${REGISTRY#https://}"
REGISTRY="${REGISTRY#http://}"
echo "registry=$REGISTRY" >> $GITHUB_OUTPUT
# Lowercase repository name
REPO="${{ gitea.repository }}"
REPO="${REPO,,}"
echo "repository=$REPO" >> $GITHUB_OUTPUT
- name: Login to Gitea Container Registry
uses: docker/login-action@v3
with:
registry: ${{ steps.tag.outputs.registry }}
username: ${{ vars.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: |
${{ steps.tag.outputs.registry }}/${{ steps.tag.outputs.repository }}:${{ steps.tag.outputs.tag }}
${{ steps.tag.outputs.registry }}/${{ steps.tag.outputs.repository }}:latest
- name: Call deployment webhook
if: ${{ secrets.DEPLOYMENT_WEBHOOK != '' }}
run: |
curl -k -X POST ${{ secrets.DEPLOYMENT_WEBHOOK }} \
-H 'Content-Type: application/json'

View File

@@ -20,5 +20,9 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Display DATABASE_URL
run: |
echo "DATABASE_URL: ${DATABASE_URL:0:20}"
- name: Run migrations
run: npm run db:migrate