Try new stages feature
This commit is contained in:
@@ -15,7 +15,7 @@ build-image:
|
||||
stage: build
|
||||
interruptible: true
|
||||
image:
|
||||
name: ghcr.io/blue-build/cli:main
|
||||
name: ghcr.io/blue-build/cli:108-feat-allow-adding-stages-to-run-builds-for-things-like-compiled-programs
|
||||
entrypoint: [""]
|
||||
services:
|
||||
- docker:dind
|
||||
|
||||
17
config/scripts/install-helix.sh
Normal file
17
config/scripts/install-helix.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
apt-get update && apt-get install -y git
|
||||
|
||||
mkdir -p /src/
|
||||
cd /src/
|
||||
|
||||
git clone https://github.com/helix-editor/helix.git
|
||||
cd helix
|
||||
|
||||
RUSTFLAGS="-C target-feature=-crt-static"
|
||||
cargo install --path helix-term --locked
|
||||
|
||||
mkdir -p /out/
|
||||
mv $CARGO_HOME/bin/hx /out/
|
||||
15
recipes/common/bluebuild.yml
Normal file
15
recipes/common/bluebuild.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
stages:
|
||||
- name: blue-build
|
||||
image: rust
|
||||
modules:
|
||||
- type: containerfile
|
||||
snippets:
|
||||
- |
|
||||
RUN cargo install blue-build --all-features --target x86_64-unknown-linux-gnu \
|
||||
&& mkdir -p /out/ \
|
||||
&& mv $CARGO_HOME/bin/bluebuild /out/bluebuild
|
||||
modules:
|
||||
- type: copy
|
||||
from: blue-build
|
||||
src: /out/bluebuild
|
||||
dest: /usr/bin/bluebuild
|
||||
15
recipes/common/helix.yml
Normal file
15
recipes/common/helix.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
stages:
|
||||
- name: helix
|
||||
image: rust
|
||||
shell:
|
||||
- bash
|
||||
- -c
|
||||
modules:
|
||||
- type: script
|
||||
scripts:
|
||||
- install-helix.sh
|
||||
modules:
|
||||
- type: copy
|
||||
from: helix
|
||||
src: /out/helix
|
||||
dest: /usr/bin/
|
||||
@@ -2,5 +2,10 @@ name: jp-desktop
|
||||
base-image: ghcr.io/ublue-os/bazzite-nvidia
|
||||
image-version: 40
|
||||
description: The image of Wunker OS for JP's desktop gaming.
|
||||
stages:
|
||||
- from-file: common/bluebuild.yml
|
||||
- from-file: common/helix.yml
|
||||
modules:
|
||||
- from-file: common/jp-desktop.yml
|
||||
- from-file: common/bluebuild.yml
|
||||
- from-file: common/helix.yml
|
||||
|
||||
Reference in New Issue
Block a user