chore(gitlab-ci): ...
This commit is contained in:
parent
72143a95f1
commit
6950b533f4
@ -21,7 +21,7 @@ node dependencies:
|
||||
script:
|
||||
- nix -L build -o node-dependencies .#uniworxNodeDependencies
|
||||
- nix-store --export $(nix-store -qR node-dependencies) > node-dependencies.nar
|
||||
before_script:
|
||||
before_script: &nix
|
||||
- install -m 0644 .gitlab-ci/nix-bootstrap.conf /etc/nix/nix.conf
|
||||
- nix-env -f '<nixpkgs>' -riA envsubst
|
||||
- envsubst -i .gitlab-ci/nix.conf -o /etc/nix/nix.conf
|
||||
@ -44,15 +44,7 @@ well known:
|
||||
- nix-store --import <node-dependencies.nar
|
||||
- nix -L build -o well-known .#uniworxWellKnown
|
||||
- nix-store --export $(nix-store -qR well-known) > well-known.nar
|
||||
before_script:
|
||||
- install -m 0644 .gitlab-ci/nix-bootstrap.conf /etc/nix/nix.conf
|
||||
- nix-env -f '<nixpkgs>' -riA envsubst
|
||||
- envsubst -i .gitlab-ci/nix.conf -o /etc/nix/nix.conf
|
||||
- git config --global init.defaultBranch master
|
||||
- install -v -m 0700 -d ~/.ssh
|
||||
- install -v -T -m 0644 "${SSH_KNOWN_HOSTS}" ~/.ssh/known_hosts
|
||||
- install -v -T -m 0400 "${SSH_DEPLOY_KEY}" ~/.ssh/deploy && echo "IdentityFile ~/.ssh/deploy" >> ~/.ssh/config;
|
||||
- install -v -T -m 0644 "${FONTAWESOME_NPM_AUTH_FILE}" /etc/fontawesome-token
|
||||
before_script: *nix
|
||||
needs:
|
||||
- job: node dependencies
|
||||
artifacts: true
|
||||
@ -71,19 +63,11 @@ frontend:
|
||||
- nix-store --import <well-known.nar
|
||||
- nix -L build -o frontend .#uniworxFrontend
|
||||
- nix-store --export $(nix-store -qR frontend) > frontend.nar
|
||||
before_script:
|
||||
- install -m 0644 .gitlab-ci/nix-bootstrap.conf /etc/nix/nix.conf
|
||||
- nix-env -f '<nixpkgs>' -riA envsubst
|
||||
- envsubst -i .gitlab-ci/nix.conf -o /etc/nix/nix.conf
|
||||
- git config --global init.defaultBranch master
|
||||
- install -v -m 0700 -d ~/.ssh
|
||||
- install -v -T -m 0644 "${SSH_KNOWN_HOSTS}" ~/.ssh/known_hosts
|
||||
- install -v -T -m 0400 "${SSH_DEPLOY_KEY}" ~/.ssh/deploy && echo "IdentityFile ~/.ssh/deploy" >> ~/.ssh/config;
|
||||
- install -v -T -m 0644 "${FONTAWESOME_NPM_AUTH_FILE}" /etc/fontawesome-token
|
||||
before_script: *nix
|
||||
needs:
|
||||
- job: node dependencies
|
||||
artifacts: true
|
||||
- job: well-known
|
||||
- job: well known
|
||||
artifacts: true
|
||||
artifacts:
|
||||
paths:
|
||||
@ -99,15 +83,7 @@ backend:
|
||||
- nix-store --import <frontend.nar
|
||||
- nix -L build -o backend .#uniworxBackend
|
||||
- cp -pr --reflink=auto result/bin .
|
||||
before_script:
|
||||
- install -m 0644 .gitlab-ci/nix-bootstrap.conf /etc/nix/nix.conf
|
||||
- nix-env -f '<nixpkgs>' -riA envsubst
|
||||
- envsubst -i .gitlab-ci/nix.conf -o /etc/nix/nix.conf
|
||||
- git config --global init.defaultBranch master
|
||||
- install -v -m 0700 -d ~/.ssh
|
||||
- install -v -T -m 0644 "${SSH_KNOWN_HOSTS}" ~/.ssh/known_hosts
|
||||
- install -v -T -m 0400 "${SSH_DEPLOY_KEY}" ~/.ssh/deploy && echo "IdentityFile ~/.ssh/deploy" >> ~/.ssh/config;
|
||||
- install -v -T -m 0644 "${FONTAWESOME_NPM_AUTH_FILE}" /etc/fontawesome-token
|
||||
before_script: *nix
|
||||
needs:
|
||||
- job: frontend
|
||||
artifacts: true
|
||||
@ -125,15 +101,7 @@ demo docker:
|
||||
- nix-store --import <backend.nar
|
||||
- nix -L build -o backend .#uniworxDemoDocker
|
||||
- cp -pr --reflink=auto -L result uniworx-demo.tar.gz
|
||||
before_script:
|
||||
- install -m 0644 .gitlab-ci/nix-bootstrap.conf /etc/nix/nix.conf
|
||||
- nix-env -f '<nixpkgs>' -riA envsubst
|
||||
- envsubst -i .gitlab-ci/nix.conf -o /etc/nix/nix.conf
|
||||
- git config --global init.defaultBranch master
|
||||
- install -v -m 0700 -d ~/.ssh
|
||||
- install -v -T -m 0644 "${SSH_KNOWN_HOSTS}" ~/.ssh/known_hosts
|
||||
- install -v -T -m 0400 "${SSH_DEPLOY_KEY}" ~/.ssh/deploy && echo "IdentityFile ~/.ssh/deploy" >> ~/.ssh/config;
|
||||
- install -v -T -m 0644 "${FONTAWESOME_NPM_AUTH_FILE}" /etc/fontawesome-token
|
||||
before_script: *nix
|
||||
needs:
|
||||
- job: backend
|
||||
artifacts: true
|
||||
@ -151,15 +119,7 @@ docker:
|
||||
- nix-store --import <backend.nar
|
||||
- nix -L build -o backend .#uniworxDocker
|
||||
- cp -pr --reflink=auto -L result uniworx.tar.gz
|
||||
before_script:
|
||||
- install -m 0644 .gitlab-ci/nix-bootstrap.conf /etc/nix/nix.conf
|
||||
- nix-env -f '<nixpkgs>' -riA envsubst
|
||||
- envsubst -i .gitlab-ci/nix.conf -o /etc/nix/nix.conf
|
||||
- git config --global init.defaultBranch master
|
||||
- install -v -m 0700 -d ~/.ssh
|
||||
- install -v -T -m 0644 "${SSH_KNOWN_HOSTS}" ~/.ssh/known_hosts
|
||||
- install -v -T -m 0400 "${SSH_DEPLOY_KEY}" ~/.ssh/deploy && echo "IdentityFile ~/.ssh/deploy" >> ~/.ssh/config;
|
||||
- install -v -T -m 0644 "${FONTAWESOME_NPM_AUTH_FILE}" /etc/fontawesome-token
|
||||
before_script: *nix
|
||||
needs:
|
||||
- job: backend
|
||||
artifacts: true
|
||||
|
||||
Loading…
Reference in New Issue
Block a user