add DATABASE_URL to the deployment #54
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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 |