Compare commits

...

14 Commits
main ... main

Author SHA1 Message Date
76b3af3e55
ci: do not build amd64 version 2024-05-30 17:02:03 +02:00
ef04e95c4e
chore: update alpine version 2024-05-30 17:01:23 +02:00
5d6dc6f50e
ci: use master branch 2024-02-09 20:34:33 +01:00
3ea33fc34e
ci: force newest version of QEMU 2024-02-09 17:48:04 +01:00
9508911c19
ci: use own custom QEMU action 2024-02-09 17:38:17 +01:00
3bbf1a2bfa
ci: try version 1 2024-02-09 17:29:30 +01:00
c56c6c39ed
revert: ci: disable QEMU
This reverts commit 280957ca226a2ffce1cee30038d97f083f92a59c.
2024-02-09 16:52:15 +01:00
280957ca22
ci: disable QEMU 2024-02-09 16:10:05 +01:00
c2c452510b
ci: add QEMU 2024-02-09 15:43:09 +01:00
69744cda5f
ci: add push 2024-02-09 15:33:42 +01:00
b2660c125c
ci: try /var/run/docker.sock 2024-02-09 15:27:31 +01:00
9895782b0a
fe 2024-02-09 15:13:06 +01:00
8bca3eb2fe
fe 2024-02-09 15:11:23 +01:00
952a1075bf
chore: add ci 2024-02-09 15:11:11 +01:00
2 changed files with 35 additions and 3 deletions
.gitea/workflows
Containerfile

32
.gitea/workflows/ci.yaml Normal file

@ -0,0 +1,32 @@
name: Container build
on: [ push ]
jobs:
container-build:
runs-on: ubuntu-latest
if: gitea.ref == 'refs/heads/main'
steps:
- name: Clone repo
uses: actions/checkout@v4
- name: Set up BuildX
uses: docker/setup-buildx-action@v2
with:
endpoint: 'unix:///var/run/docker.sock'
- name: Set up QEMU
uses: Job79/setup-qemu-action@master
- name: Login to Registry
uses: docker/login-action@v3
with:
registry: git.plabble.org
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
file: ./Containerfile
platforms: |
linux/arm64
push: true
tags: |
git.plabble.org/job79/pastabble:latest

@ -1,11 +1,11 @@
FROM node:21-alpine3.19 AS frontend-builder
FROM node:22-alpine3.20 AS frontend-builder
WORKDIR /build
RUN corepack enable
COPY pastabble-frontend/ .
RUN pnpm i && pnpm build
FROM rust:alpine3.19 AS builder
FROM rust:alpine3.20 AS builder
WORKDIR /build
RUN apk add --no-cache musl-dev
@ -18,7 +18,7 @@ RUN case "$(apk --print-arch)" in \
mv ./target/aarch64-unknown-linux-musl /release ;; \
esac
FROM alpine:3.19
FROM alpine:3.20
WORKDIR /app
RUN mkdir wwwroot data && \