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