43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
name: Build and Push Multi-Platform Images
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build-and-push:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v3
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
- name: Login to Gitea Container Registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: gitea.poettker-cloud.de
|
|
username: ${{ gitea.actor }}
|
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
|
|
|
- name: Build and Push Backend
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
context: ./paperless-backend
|
|
platforms: linux/amd64,linux/arm64
|
|
push: true
|
|
tags: gitea.poettker-cloud.de/bjoernpoettker/paperlessmanager-backend:latest
|
|
|
|
- name: Build and Push Frontend
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
context: ./paperless-frontend
|
|
platforms: linux/amd64,linux/arm64
|
|
push: true
|
|
tags: gitea.poettker-cloud.de/bjoernpoettker/paperlessmanager-frontend:latest
|