diff options
| author | Christine Dodrill <me@christine.website> | 2020-11-18 13:15:33 -0500 |
|---|---|---|
| committer | Christine Dodrill <me@christine.website> | 2020-11-18 13:15:33 -0500 |
| commit | f8ae558738d1b2639a68661b6d516a7844baab57 (patch) | |
| tree | be641bf9c316f7f85f4034f25a24a76126af986e | |
| parent | e0a174498923dad4d1b9c5b5b3ad6151481a947d (diff) | |
| download | xesite-f8ae558738d1b2639a68661b6d516a7844baab57.tar.xz xesite-f8ae558738d1b2639a68661b6d516a7844baab57.zip | |
fix
| -rw-r--r-- | .github/workflows/nix.yml | 5 | ||||
| -rwxr-xr-x | scripts/release.sh | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml index 096c869..ab5e46a 100644 --- a/.github/workflows/nix.yml +++ b/.github/workflows/nix.yml @@ -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 }} diff --git a/scripts/release.sh b/scripts/release.sh index 9510d39..57f4eaf 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -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 - |
