Compare commits

...

7 Commits

Author SHA1 Message Date
763910b515 Bump version number 2020-03-22 20:07:20 +01:00
dca32e4317 Set proper working directory 2020-03-22 20:05:06 +01:00
c301978f0b Cache nix store for CI actions 2020-03-22 19:47:09 +01:00
97fcb5a420 Use crate version for docker image 2020-03-22 19:44:05 +01:00
724c49d056 Bump version number 2020-03-22 19:43:51 +01:00
7b5d225701 Only build the binary 2020-03-22 18:33:48 +01:00
90fc0ee584 Add nix action 2020-03-22 18:22:16 +01:00
5 changed files with 27 additions and 7 deletions

20
.github/workflows/nix-build.yml vendored Normal file
View File

@ -0,0 +1,20 @@
name: "Nix Build"
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: cachix/install-nix-action@v8
- name: Cache nix store
uses: actions/cache@v1
with:
path: /nix
key: ${{ runner.os }}-nix-store
- uses: cachix/cachix-action@v5
with:
name: hitsofcode
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
attributes: package

2
Cargo.lock generated
View File

@ -830,7 +830,7 @@ dependencies = [
[[package]]
name = "hoc"
version = "0.11.6"
version = "0.11.7"
dependencies = [
"actix-rt",
"actix-web",

View File

@ -27,7 +27,7 @@ in
{
cargo2nixVersion = "0.8.2";
workspace = {
hoc = rustPackages.unknown.hoc."0.11.5";
hoc = rustPackages.unknown.hoc."0.11.7";
};
"registry+https://github.com/rust-lang/crates.io-index".actix-codec."0.2.0" = overridableMkRustCrate (profileName: rec {
name = "actix-codec";
@ -1144,9 +1144,9 @@ in
};
});
"unknown".hoc."0.11.5" = overridableMkRustCrate (profileName: rec {
"unknown".hoc."0.11.7" = overridableMkRustCrate (profileName: rec {
name = "hoc";
version = "0.11.5";
version = "0.11.7";
registry = "unknown";
src = fetchCrateLocal ./.;
dependencies = {

View File

@ -1,6 +1,6 @@
[package]
name = "hoc"
version = "0.11.6"
version = "0.11.7"
authors = ["Valentin Brandl <vbrandl@riseup.net>"]
edition = "2018"
build = "build.rs"

View File

@ -39,13 +39,13 @@ rec {
dockerImage =
pkgs.dockerTools.buildImage {
name = "vbrandl/hits-of-code";
tag = "1";
tag = package.version;
contents = [ package ];
config = {
Cmd = [ "/bin/hoc" ];
WorkingDir = "/";
WorkingDir = "/home/hoc";
};
};
}