Skip to content

Commit

Permalink
Clean up workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
pbar1 committed Jun 26, 2023
1 parent b688bbe commit 014db02
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: cachix/install-nix-action@v20
with:
nix_path: nixpkgs=channel:nixpkgs-unstable

- uses: cachix/cachix-action@v12
with:
name: pbar1
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}

- run: nix-build . -A defaultPackage.x86_64-linux
11 changes: 8 additions & 3 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,25 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: cachix/install-nix-action@v20
with:
nix_path: nixpkgs=channel:nixpkgs-unstable

- uses: cachix/cachix-action@v12
with:
name: pbar1
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}

- run: nix build .#defaultPackage.x86_64-linux
- name: 'Login to GitHub Container Registry'
uses: docker/login-action@v1

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push container image
run: |
nix build .#dockerImage && ./result | docker load
Expand Down

0 comments on commit 014db02

Please sign in to comment.