Skip to content

Selfhosting

Selfhosting #42

Workflow file for this run

name: Build Docker Image
on:
push:
branches:
- main
pull_request:
branches:
- dev/develop
- main
release:
types:
- created
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Build and push Docker image
uses: docker/build-push-action@v2
if: github.event_name != 'release'
with:
context: .
push: false
tags: librum-reader/librum-server:latest
- name: Push Docker image with release tag
uses: docker/build-push-action@v2
if: github.event_name == 'release'
with:
context: .
push: true
tags: ghcr.io/librum-reader/librum-server:${{ github.event.release.tag_name }}