will this work lol

This commit is contained in:
Cadey Ratio 2020-11-18 12:54:22 -05:00
parent 7ac6c03341
commit 5ff4af60f8
1 changed files with 4 additions and 9 deletions

View File

@ -17,24 +17,19 @@ jobs:
name: xe name: xe
- run: nix-build - run: nix-build
- name: Log into GitHub Container Registry - name: Log into GitHub Container Registry
if: github.ref == 'refs/heads/main'
run: echo "${{ secrets.CR_PAT }}" | docker login https://ghcr.io -u ${{ github.actor }} --password-stdin run: echo "${{ secrets.CR_PAT }}" | docker login https://ghcr.io -u ${{ github.actor }} --password-stdin
- name: Docker push - name: Docker push
if: github.ref == 'refs/heads/main'
run: | run: |
docker load -i result docker load -i result
docker tag xena/christinewebsite:latest ghcr.io/xe/site:$GITHUB_SHA docker tag xena/christinewebsite:latest ghcr.io/xe/site:$GITHUB_SHA
docker push ghcr.io/xe/site docker push ghcr.io/xe/site
release:
runs-on: ubuntu-latest
needs: docker-build
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v1
- uses: cachix/install-nix-action@v12
- run: nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs
- name: deploy - name: deploy
if: github.ref == 'refs/heads/main'
run: ./scripts/release.sh run: ./scripts/release.sh
env: env:
NIX_PATH: nixpkgs=https://nixos.org/channels/nixpkgs-unstable NIX_PATH: /nix/var/nix/profiles/per-user/root/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 }}