Skip to content

fix: provide testing database via secret for docker build #9

fix: provide testing database via secret for docker build

fix: provide testing database via secret for docker build #9

Workflow file for this run

name: publish
on: [push]
jobs:
build:
env:
DATABASE_URL: ${{ vars.DATABASE_URL }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
run: |
docker build . --tag ghcr.io/tautf/foinix:latest
docker run ghcr.io/tautf/foinix:latest
docker push ghcr.io/tautf/foinix:latest