mirror of https://gitlab.com/curben/blog
post(rsync-nixos): specify artifact between jobs
This commit is contained in:
parent
62bad2d134
commit
0c569662a1
|
@ -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"
|
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
|
``` nix /etc/nixos/configuration.nix
|
||||||
users = {
|
users = {
|
||||||
|
@ -134,6 +134,10 @@ build:
|
||||||
script:
|
script:
|
||||||
- npm run build
|
- npm run build
|
||||||
|
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- public/
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue