Compare commits
14 Commits
Author | SHA1 | Date | |
---|---|---|---|
76b3af3e55 | |||
ef04e95c4e | |||
5d6dc6f50e | |||
3ea33fc34e | |||
9508911c19 | |||
3bbf1a2bfa | |||
c56c6c39ed | |||
280957ca22 | |||
c2c452510b | |||
69744cda5f | |||
b2660c125c | |||
9895782b0a | |||
8bca3eb2fe | |||
952a1075bf |
32
.gitea/workflows/ci.yaml
Normal file
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
|
WORKDIR /build
|
||||||
|
|
||||||
RUN corepack enable
|
RUN corepack enable
|
||||||
COPY pastabble-frontend/ .
|
COPY pastabble-frontend/ .
|
||||||
RUN pnpm i && pnpm build
|
RUN pnpm i && pnpm build
|
||||||
|
|
||||||
FROM rust:alpine3.19 AS builder
|
FROM rust:alpine3.20 AS builder
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
|
|
||||||
RUN apk add --no-cache musl-dev
|
RUN apk add --no-cache musl-dev
|
||||||
@ -18,7 +18,7 @@ RUN case "$(apk --print-arch)" in \
|
|||||||
mv ./target/aarch64-unknown-linux-musl /release ;; \
|
mv ./target/aarch64-unknown-linux-musl /release ;; \
|
||||||
esac
|
esac
|
||||||
|
|
||||||
FROM alpine:3.19
|
FROM alpine:3.20
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
RUN mkdir wwwroot data && \
|
RUN mkdir wwwroot data && \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user