This commit is contained in:
commit
a27816ebef
2 changed files with 38 additions and 0 deletions
34
.forgejo/workflows/docker-publish.yml
Normal file
34
.forgejo/workflows/docker-publish.yml
Normal file
|
|
@ -0,0 +1,34 @@
|
||||||
|
name: Docker
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ "main" ]
|
||||||
|
|
||||||
|
env:
|
||||||
|
REGISTRY: git.lycaknight.de
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: docker
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
packages: write
|
||||||
|
id-token: write
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Log into Container Registry
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: ${{ env.REGISTRY }}
|
||||||
|
username: ${{ gitea.actor }}
|
||||||
|
password: ${{ secrets.PORTFOLIO_TOKEN }}
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
|
- name: Build and push Docker image
|
||||||
|
id: build-and-push
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
|
with:
|
||||||
|
tags: ${{ env.REGISTRY }}/${{ gitea.repository }}:latest
|
||||||
|
platforms: linux/arm64
|
||||||
|
push: true
|
||||||
4
Dockerfile
Normal file
4
Dockerfile
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
FROM erikvl87/languagetool:latest
|
||||||
|
USER root
|
||||||
|
RUN apk add fasttext
|
||||||
|
USER languagetool
|
||||||
Loading…
Add table
Add a link
Reference in a new issue