forked from cadey/xesite
fix
This commit is contained in:
parent
e0a1744989
commit
f8ae558738
|
@ -27,11 +27,8 @@ jobs:
|
||||||
docker push ghcr.io/xe/site
|
docker push ghcr.io/xe/site
|
||||||
- name: deploy
|
- name: deploy
|
||||||
if: github.ref == 'refs/heads/main'
|
if: github.ref == 'refs/heads/main'
|
||||||
run: |
|
run: ./scripts/release.sh
|
||||||
nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs
|
|
||||||
./scripts/release.sh
|
|
||||||
env:
|
env:
|
||||||
NIX_PATH: /nix/var/nix/profiles/per-user/runner/channels
|
|
||||||
DIGITALOCEAN_ACCESS_TOKEN: ${{ secrets.DIGITALOCEAN_TOKEN }}
|
DIGITALOCEAN_ACCESS_TOKEN: ${{ secrets.DIGITALOCEAN_TOKEN }}
|
||||||
MI_TOKEN: ${{ secrets.MI_TOKEN }}
|
MI_TOKEN: ${{ secrets.MI_TOKEN }}
|
||||||
PATREON_ACCESS_TOKEN: ${{ secrets.PATREON_ACCESS_TOKEN }}
|
PATREON_ACCESS_TOKEN: ${{ secrets.PATREON_ACCESS_TOKEN }}
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#!/usr/bin/env nix-shell
|
#!/usr/bin/env nix-shell
|
||||||
#! nix-shell -p doctl -p kubectl -p curl -i bash
|
#! 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
|
nix-env -if ./nix/dhall-yaml.nix
|
||||||
doctl kubernetes cluster kubeconfig save kubermemes
|
doctl kubernetes cluster kubeconfig save kubermemes
|
||||||
dhall-to-yaml-ng < ./site.dhall | kubectl apply -n apps -f -
|
dhall-to-yaml-ng < ./site.dhall | kubectl apply -n apps -f -
|
||||||
|
|
Loading…
Reference in New Issue