Update CI pipleline for auto deployment
This commit is contained in:
parent
00421a0e44
commit
d7d88d4509
1 changed files with 14 additions and 8 deletions
22
.github/workflows/ci.yml
vendored
22
.github/workflows/ci.yml
vendored
|
@ -25,11 +25,17 @@ jobs:
|
||||||
attic use "$CACHE_REPOSITORY"
|
attic use "$CACHE_REPOSITORY"
|
||||||
- name: Run Builds and Checks
|
- name: Run Builds and Checks
|
||||||
run: nix-fast-build --no-nom --max-jobs 6 --skip-cached --attic-cache "$CACHE_REPOSITORY"
|
run: nix-fast-build --no-nom --max-jobs 6 --skip-cached --attic-cache "$CACHE_REPOSITORY"
|
||||||
- name: Deploy Docs
|
deploy:
|
||||||
if: success() && github.ref == 'refs/heads/main'
|
needs: build
|
||||||
run: |
|
if: success() && github.ref == 'refs/heads/main'
|
||||||
mkdir ~/.ssh/
|
runs-on: nix
|
||||||
echo -e "Host lindberg-webapps.backplane.net.qo.is\n StrictHostKeyChecking no" >> ~/.ssh/config
|
env:
|
||||||
(umask 0077 && printf "%s\n" "${{ secrets.SSH_DEPLOY_KEY }}" > ~/.ssh/id_ed25519)
|
SSH_DEPLOY_KEY: "${{ secrets.SSH_DEPLOY_KEY }}"
|
||||||
deploy --skip-checks --remote-build .#lindberg-webapps.\"docs-ops.qo.is\"
|
strategy:
|
||||||
# Remote build is neccessary due to non-wheel nix users signing restrictions. However, the build should come from the cache anyway.
|
matrix:
|
||||||
|
profile:
|
||||||
|
- docs-ops.qo.is
|
||||||
|
- system-vm
|
||||||
|
steps:
|
||||||
|
- name: "Deploy Profile ${{ matrix.profile }}"
|
||||||
|
run: "auto-deploy ${{ matrix.profile }}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue