Skip to content

Configure SSH key handling in CI workflow #3

Configure SSH key handling in CI workflow

Configure SSH key handling in CI workflow #3

Workflow file for this run

name: "Nix Omnix CI (with nixbuild)"
on:
push:
pull_request:
jobs:
build:
runs-on: [ubuntu-latest]
strategy:
fail-fast: true
steps:
- uses: actions/checkout@v4
- run: |
cat ${{ secrets.SSH_KEY }} > ssh_key
chmod 0700 ssh_key
ssh-add ./ssh_key
ssh [email protected] echo hi
- uses: DeterminateSystems/nix-installer-action@main
with:
determinate: true
extra-conf:
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: DeterminateSystems/flake-checker-action@main
# - name: Install Cachix and Omnix
# run: "nix profile install --accept-flake-config github:juspay/omnix nixpkgs#cachix"
# - name: Authenticate Cachix
# run: "cachix authtoken ${{ secrets.CACHIX_AUTH_TOKEN }}"
- name: Build all flake outputs and push to Cachix
run: "om ci | cachix push hyprflake"