Skip to content

add DATABASE_URL to the deployment #54

add DATABASE_URL to the deployment

add DATABASE_URL to the deployment #54

Workflow file for this run

---
name: Build and Deploy
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-24.04-arm
steps:
- name: Cloning repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Store package.json version
run: |
echo "me_version=$(jq -r '.version' package.json)" >> $GITHUB_ENV
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: "${{ github.actor }}"
password: "${{ secrets.GITHUB_TOKEN }}"
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push container
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile
platforms: linux/arm64
push: true
tags: |
ghcr.io/xetera/me:${{ env.me_version }}
ghcr.io/xetera/me:latest