save result of nix build in persistent volume
ci/woodpecker/tag/woodpecker Pipeline failed Details

Patrick Cleavelin 2023-07-30 13:20:27 -05:00
parent f4ae16ee7c
commit fb82c6d9b0
2 changed files with 4 additions and 3 deletions

View File

@ -11,6 +11,7 @@ steps:
- apk add --no-cache git nix --repository=https://dl-cdn.alpinelinux.org/alpine/edge/testing - apk add --no-cache git nix --repository=https://dl-cdn.alpinelinux.org/alpine/edge/testing
- echo "system-features = nixos-test benchmark big-parallel uid-range kvm" > /etc/nix/nix.conf - echo "system-features = nixos-test benchmark big-parallel uid-range kvm" > /etc/nix/nix.conf
- nix build --extra-experimental-features nix-command --extra-experimental-features flakes .#docker - nix build --extra-experimental-features nix-command --extra-experimental-features flakes .#docker
- cp $(nix build --extra-experimental-features nix-command --extra-experimental-features flakes --print-out-paths .#docker) ./memejoin-rs.tar.gz
publish-image: publish-image:
when: when:
@ -19,8 +20,8 @@ steps:
secrets: [ forgejo_token ] secrets: [ forgejo_token ]
commands: commands:
- docker login -u ${CI_REPO_OWNER} --password $FORGEJO_TOKEN git.spacegirl.nl - docker login -u ${CI_REPO_OWNER} --password $FORGEJO_TOKEN git.spacegirl.nl
- docker image load --input result - docker image load --input memejoin-rs.tar.gz
- docker image tag memejoin-rs git.spacegirl.nl/${CI_REPO}:${CI_COMMIT_TAG} - docker image tag memejoin-rs:${CI_COMMIT_TAG} git.spacegirl.nl/${CI_REPO}:${CI_COMMIT_TAG}
- docker image push git.spacegirl.nl/${CI_REPO}:${CI_COMMIT_TAG} - docker image push git.spacegirl.nl/${CI_REPO}:${CI_COMMIT_TAG}
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock

View File

@ -46,7 +46,7 @@
packages = with pkgs; flake-utils.lib.flattenTree rec { packages = with pkgs; flake-utils.lib.flattenTree rec {
default = rustPlatform.buildRustPackage rec { default = rustPlatform.buildRustPackage rec {
name = "memejoin-rs"; name = "memejoin-rs";
version = "0.1.4_2-alpha"; version = "super_test";
src = self; src = self;
buildInputs = [ openssl.dev ]; buildInputs = [ openssl.dev ];
nativeBuildInputs = [ local-rust pkg-config openssl openssl.dev cmake gcc libopus ]; nativeBuildInputs = [ local-rust pkg-config openssl openssl.dev cmake gcc libopus ];