This commit is contained in:
@@ -8,30 +8,21 @@ env:
|
||||
IMAGE_NAME: ${{ github.event.repository.name }}
|
||||
jobs:
|
||||
build-release:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: nix
|
||||
permissions:
|
||||
id-token: write
|
||||
contents: read
|
||||
steps:
|
||||
- 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
|
||||
@@ -80,4 +71,4 @@ jobs:
|
||||
curl -f --user "${{ secrets.CI_USER }}:${{ secrets.CI_PASSWORD }}" \
|
||||
-X POST \
|
||||
--upload-file ./$CHART_FILE \
|
||||
"${{ github.server_url }}/api/packages/${{ github.repository_owner }}/helm/api/charts"
|
||||
"${{ github.server_url }}/api/packages/${{ github.repository_owner }}/helm/api/charts"
|
||||
|
||||
Reference in New Issue
Block a user