This commit is contained in:
Cadey Ratio 2020-11-18 13:15:33 -05:00
parent e0a1744989
commit f8ae558738
2 changed files with 3 additions and 4 deletions

View File

@ -27,11 +27,8 @@ jobs:
docker push ghcr.io/xe/site
- name: deploy
if: github.ref == 'refs/heads/main'
run: |
nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs
./scripts/release.sh
run: ./scripts/release.sh
env:
NIX_PATH: /nix/var/nix/profiles/per-user/runner/channels
DIGITALOCEAN_ACCESS_TOKEN: ${{ secrets.DIGITALOCEAN_TOKEN }}
MI_TOKEN: ${{ secrets.MI_TOKEN }}
PATREON_ACCESS_TOKEN: ${{ secrets.PATREON_ACCESS_TOKEN }}

View File

@ -1,5 +1,7 @@
#!/usr/bin/env nix-shell
#! nix-shell -p doctl -p kubectl -p curl -i bash
#! nix-shell -I nixpkgs=https://nixos.org/channels/nixpkgs-unstable
nix-env -if ./nix/dhall-yaml.nix
doctl kubernetes cluster kubeconfig save kubermemes
dhall-to-yaml-ng < ./site.dhall | kubectl apply -n apps -f -