This commit is contained in:
parent
870c8cb012
commit
c86686ea8c
4 changed files with 28 additions and 3 deletions
25
.forgejo/workflows/build.yaml
Normal file
25
.forgejo/workflows/build.yaml
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
on:
|
||||
push:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: quay.io/fedora/fedora-minimal:40
|
||||
steps:
|
||||
- run: dnf5 install -y nodejs tar xz git buildah podman skopeo just
|
||||
- uses: https://code.forgejo.org/actions/checkout@v4
|
||||
- name: build image
|
||||
run: just build "--storage-driver=vfs"
|
||||
|
||||
- name: export image
|
||||
run: podman --storage-driver=vfs save rssmix:latest -o image.tar
|
||||
- name: set registry env
|
||||
run: |
|
||||
set -euxo pipefail
|
||||
echo "DOCKER_REGISTRY=$(echo ${{ GITHUB.SERVER_URL }} | sed -E 's/^\s*.*:\/\///g' )" >> $GITHUB_ENV
|
||||
- run: echo DOCKER_REGISTRY=$DOCKER_REGISTRY
|
||||
- name: log into docker
|
||||
run: skopeo login -u ${{ GITHUB.REPOSITORY_OWNER }} -p ${{ SECRETS.PACKAGE_PUSH_KEY }} $DOCKER_REGISTRY
|
||||
- name: upload image
|
||||
run: skopeo copy docker-archive:image.tar docker://$DOCKER_REGISTRY/${{ GITHUB.REPOSITORY_OWNER }}/rssmix:latest
|
||||
|
|
@ -24,7 +24,7 @@ RUN set -euxo pipefail && \
|
|||
WORKDIR /workdir
|
||||
COPY . /workdir
|
||||
|
||||
ARG NIMBLESETTINGS=""
|
||||
ARG NIMBLESETTINGS="-d:release --opt:speed -d:strip"
|
||||
RUN just build-binary '${NIMBLESETTINGS}'
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
services:
|
||||
bimage:
|
||||
rssmix:
|
||||
image: rssmix:latest
|
||||
ports:
|
||||
- 8085:8085
|
||||
|
|
|
|||
2
justfile
2
justfile
|
|
@ -6,7 +6,7 @@ dev nimblesettings="":
|
|||
build-dev nimblesettings="":
|
||||
nimble build {{nimblesettings}} rssmix
|
||||
|
||||
build-binary nimblesettings="":
|
||||
build-binary nimblesettings="-d:release --opt:speed -d:strip":
|
||||
nimble -y {{nimblesettings}} build rssmix
|
||||
strip rssmix
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue