From 0c569662a1224b089a65f16c772f71fec8989b24 Mon Sep 17 00:00:00 2001 From: Ming Di Leom <2809763-curben@users.noreply.gitlab.com> Date: Mon, 15 Mar 2021 22:51:56 +0000 Subject: [PATCH] post(rsync-nixos): specify artifact between jobs --- source/_posts/rsync-setup-nixos.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/_posts/rsync-setup-nixos.md b/source/_posts/rsync-setup-nixos.md index 746f056..0b4401f 100644 --- a/source/_posts/rsync-setup-nixos.md +++ b/source/_posts/rsync-setup-nixos.md @@ -29,7 +29,7 @@ Generate a new SSH key. If you're planning to use rsync on CI/CD pipeline, leave ssh-keygen -t ed25519 -C "www-data@nixos-server" ``` -Create a separate user with home folder set to where web server will be deployed. I use the convention of `www-data` user with `/var/www` home folder. Create +Create a separate user with home folder set to where web server will be deployed. I use the convention of `www-data` user with `/var/www` home folder. Create ``` nix /etc/nixos/configuration.nix users = { @@ -134,6 +134,10 @@ build: script: - npm run build + artifacts: + paths: + - public/ + deploy: stage: deploy