update ci
This commit is contained in:
parent
ed41db9ab0
commit
b313cbb7e4
2 changed files with 3 additions and 8 deletions
|
@ -1,6 +1,3 @@
|
||||||
workspace:
|
|
||||||
base: /mdbook
|
|
||||||
|
|
||||||
pipeline:
|
pipeline:
|
||||||
nix:
|
nix:
|
||||||
image: nixos/nix
|
image: nixos/nix
|
||||||
|
@ -9,14 +6,12 @@ pipeline:
|
||||||
commands:
|
commands:
|
||||||
- nix flake check
|
- nix flake check
|
||||||
- nix build '.#mdbook-toc'
|
- nix build '.#mdbook-toc'
|
||||||
- nix build '.#docker'
|
|
||||||
- cp result image.tar.gz
|
|
||||||
publish:
|
publish:
|
||||||
image: git.0x76.dev/v/push-container:0.3.0
|
image: git.0x76.dev/v/push-nix-container:main
|
||||||
settings:
|
settings:
|
||||||
username: v
|
username: v
|
||||||
password:
|
password:
|
||||||
from_secret: registry_password
|
from_secret: registry_password
|
||||||
|
package: container # nix os package to build
|
||||||
repo: git.0x76.dev
|
repo: git.0x76.dev
|
||||||
image: v/mdbook-container
|
image: v/mdbook-container
|
||||||
tag: 0.1.0
|
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
let pkgs = nixpkgs.legacyPackages.${system};
|
let pkgs = nixpkgs.legacyPackages.${system};
|
||||||
in {
|
in {
|
||||||
packages = rec {
|
packages = rec {
|
||||||
docker = pkgs.dockerTools.buildLayeredImage {
|
container = pkgs.dockerTools.buildLayeredImage {
|
||||||
name = "mdbook-container";
|
name = "mdbook-container";
|
||||||
contents = [
|
contents = [
|
||||||
(pkgs.buildEnv {
|
(pkgs.buildEnv {
|
||||||
|
|
Loading…
Reference in a new issue