mirror of
https://github.com/tweag/asterius.git
synced 2024-09-11 08:55:32 +03:00
WIP
This commit is contained in:
commit
703670574e
8
.buildkite/nixpkgs.nix
Normal file
8
.buildkite/nixpkgs.nix
Normal file
@ -0,0 +1,8 @@
|
||||
let
|
||||
rev = "91fce0fb2f4b79c6e4a3f4ea129c4e665197cd35";
|
||||
sha256 = "14adfhma5xnzs3f1n9nqpr4x9yvw9b100q2rprwyvy612c82pvz0";
|
||||
in
|
||||
import (fetchTarball {
|
||||
inherit sha256;
|
||||
url = "https://github.com/NixOS/nixpkgs/archive/${rev}.tar.gz";
|
||||
})
|
32
.buildkite/pipeline.yml
Normal file
32
.buildkite/pipeline.yml
Normal file
@ -0,0 +1,32 @@
|
||||
env:
|
||||
ASTERIUS_BRANCH: master
|
||||
|
||||
steps:
|
||||
|
||||
- key: "asterius-dev-image"
|
||||
label: "asterius-dev-image"
|
||||
command: |
|
||||
rm -rf /tmp/asterius*
|
||||
mkdir -p /tmp/asterius
|
||||
mv .buildkite/* /tmp/asterius
|
||||
git fetch origin $ASTERIUS_BRANCH
|
||||
git checkout -f origin/$ASTERIUS_BRANCH
|
||||
mv /tmp/asterius/* .buildkite
|
||||
|
||||
docker system prune --all --force
|
||||
docker build \
|
||||
--compress \
|
||||
--file dev.Dockerfile \
|
||||
--label "gitrev=$(git rev-parse HEAD)" \
|
||||
--network host \
|
||||
--no-cache \
|
||||
--pull \
|
||||
--squash \
|
||||
--tag terrorjack/asterius:dev \
|
||||
.
|
||||
nix-shell \
|
||||
.buildkite/shell.nix \
|
||||
--command "docker save terrorjack/asterius:dev | zstd -T8 -8 -o asterius-dev-image.tar.zst"
|
||||
buildkite-agent artifact upload asterius-dev-image.tar.zst
|
||||
rm asterius-dev-image.tar.zst
|
||||
docker system prune --all --force
|
7
.buildkite/shell.nix
Normal file
7
.buildkite/shell.nix
Normal file
@ -0,0 +1,7 @@
|
||||
{pkgs ? import ./nixpkgs.nix {} }:
|
||||
|
||||
with pkgs;
|
||||
|
||||
mkShell {
|
||||
buildInputs = [ zstd ];
|
||||
}
|
Loading…
Reference in New Issue
Block a user