Add Gitea Action for multi-platform docker builds
Build and Push Multi-Platform Images / build-and-push (push) Waiting to run
Build and Push Multi-Platform Images / build-and-push (push) Waiting to run
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
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.GITEA_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
|
||||
Reference in New Issue
Block a user