use gitea actions
This commit is contained in:
parent
3a3f5ac990
commit
dabcb04d7a
12
.gitea/workflows/container.yaml
Normal file
12
.gitea/workflows/container.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
name: Build Multiarch Container Image
|
||||||
|
on: [push]
|
||||||
|
jobs:
|
||||||
|
call-reusable-workflow:
|
||||||
|
uses: container/multiarch-build-workflow/.gitea/workflows/build.yaml@main
|
||||||
|
with:
|
||||||
|
repository: ${{ gitea.repository }}
|
||||||
|
ref_name: ${{ gitea.ref_name }}
|
||||||
|
sha: ${{ gitea.sha }}
|
||||||
|
registry_url: ${{ secrets.REGISTRY_URL }}
|
||||||
|
registry_user: ${{ secrets.REGISTRY_USER }}
|
||||||
|
registry_pw: ${{ secrets.REGISTRY_PW }}
|
@ -1,11 +0,0 @@
|
|||||||
pipeline:
|
|
||||||
publish-docker-image:
|
|
||||||
image: plugins/kaniko
|
|
||||||
settings:
|
|
||||||
repo: docker.io/thallian/wikijs
|
|
||||||
tags: latest,${CI_COMMIT_SHA:0:8},${CI_COMMIT_TAG=pre}
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
username:
|
|
||||||
from_secret: DOCKER_USER
|
|
||||||
password:
|
|
||||||
from_secret: DOCKER_PW
|
|
@ -1,4 +1,4 @@
|
|||||||
FROM docker.io/alpine:3.18 as builder
|
FROM docker.io/alpine:3.19 as builder
|
||||||
|
|
||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache \
|
||||||
git \
|
git \
|
||||||
@ -6,7 +6,9 @@ RUN apk add --no-cache \
|
|||||||
bash \
|
bash \
|
||||||
python3 \
|
python3 \
|
||||||
make \
|
make \
|
||||||
sed
|
sed \
|
||||||
|
g++ \
|
||||||
|
musl-dev
|
||||||
|
|
||||||
#ENV NODE_ENV=production
|
#ENV NODE_ENV=production
|
||||||
|
|
||||||
@ -30,7 +32,7 @@ RUN npm install --legacy-peer-deps --save-dev webpack webpack-cli
|
|||||||
RUN npx webpack --profile --config dev/webpack/webpack.prod.js
|
RUN npx webpack --profile --config dev/webpack/webpack.prod.js
|
||||||
RUN sed -i '0,/.*"dev".*/s//"dev": false,/' package.json
|
RUN sed -i '0,/.*"dev".*/s//"dev": false,/' package.json
|
||||||
|
|
||||||
FROM docker.io/thallian/confd-env:3.18-3.1.5.0
|
FROM docker.io/thallian/confd-env:3.19-3.1.6.2
|
||||||
|
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
|
|
Loading…
Reference in New Issue
Block a user