Use internal deploy-rs so we don't need to rebuild
This commit is contained in:
parent
ee6463ed3d
commit
cae4d6481b
8
.github/workflows/deploy.yml
vendored
8
.github/workflows/deploy.yml
vendored
|
@ -22,9 +22,6 @@ jobs:
|
||||||
extra_nix_config: |
|
extra_nix_config: |
|
||||||
# Enable flakes
|
# Enable flakes
|
||||||
experimental-features = nix-command flakes
|
experimental-features = nix-command flakes
|
||||||
# Import my substituters
|
|
||||||
extra-substituters = "https://natsukagami.cachix.org"
|
|
||||||
trusted-public-keys = "natsukagami.cachix.org-1:3U6GV8i8gWEaXRUuXd2S4ASfYgdl2QFPWg4BKPbmYiQ="
|
|
||||||
- name: Run format check
|
- name: Run format check
|
||||||
run: |
|
run: |
|
||||||
nix fmt
|
nix fmt
|
||||||
|
@ -72,11 +69,14 @@ jobs:
|
||||||
experimental-features = nix-command flakes
|
experimental-features = nix-command flakes
|
||||||
# Deploy tokens
|
# Deploy tokens
|
||||||
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
|
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
|
||||||
|
# Import my substituters
|
||||||
|
extra-substituters = "https://natsukagami.cachix.org"
|
||||||
|
trusted-public-keys = "natsukagami.cachix.org-1:3U6GV8i8gWEaXRUuXd2S4ASfYgdl2QFPWg4BKPbmYiQ="
|
||||||
- name: Deploy with deploy-rs
|
- name: Deploy with deploy-rs
|
||||||
env:
|
env:
|
||||||
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
|
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
|
||||||
run: |
|
run: |
|
||||||
nix run github:serokell/deploy-rs -- . --hostname ${{ secrets.INSTANCE_IP }} -s -- -L
|
nix run .#deploy-rs -- . --hostname ${{ secrets.INSTANCE_IP }} -s -- -L
|
||||||
- name: Notify deployment succeeding
|
- name: Notify deployment succeeding
|
||||||
run: |
|
run: |
|
||||||
git show --no-patch | curl \
|
git show --no-patch | curl \
|
||||||
|
|
|
@ -120,6 +120,9 @@
|
||||||
{
|
{
|
||||||
overlays.default = lib.composeManyExtensions overlays;
|
overlays.default = lib.composeManyExtensions overlays;
|
||||||
|
|
||||||
|
packages.x86_64-linux.deploy-rs = deploy-rs.packages.x86_64-linux.default;
|
||||||
|
apps.x86_64-linux.deploy-rs = deploy-rs.apps.x86_64-linux.default;
|
||||||
|
|
||||||
# MacBook configuration: nix-darwin + home-manager
|
# MacBook configuration: nix-darwin + home-manager
|
||||||
darwinConfigurations."nki-macbook" = darwin.lib.darwinSystem rec {
|
darwinConfigurations."nki-macbook" = darwin.lib.darwinSystem rec {
|
||||||
system = "aarch64-darwin";
|
system = "aarch64-darwin";
|
||||||
|
|
Loading…
Reference in a new issue