This commit is contained in:
@@ -8,7 +8,7 @@ env:
|
||||
IMAGE_NAME: ${{ github.event.repository.name }}
|
||||
jobs:
|
||||
build-release:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: nix
|
||||
permissions:
|
||||
id-token: write
|
||||
contents: read
|
||||
@@ -16,22 +16,13 @@ jobs:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- uses: DeterminateSystems/determinate-nix-action@v3
|
||||
|
||||
- uses: DeterminateSystems/flake-checker-action@main
|
||||
with:
|
||||
flake-lock-path: ./flake.lock
|
||||
|
||||
- name: Setup Attic cache
|
||||
uses: ryanccn/attic-action@v0
|
||||
with:
|
||||
endpoint: ${{ secrets.ATTIC_ENDPOINT }}
|
||||
cache: ${{ secrets.ATTIC_CACHE }}
|
||||
token: ${{ secrets.ATTIC_TOKEN }}
|
||||
|
||||
- name: Build Docker Image via Nix Flake
|
||||
run: |
|
||||
NIX_BUILD_CORES=2 nix build .#dockerImage --max-jobs 2 --print-build-logs
|
||||
nix build .#dockerImage -print-build-logs
|
||||
docker load < result
|
||||
|
||||
- name: Push closure to Attic cache
|
||||
|
||||
Reference in New Issue
Block a user