This commit is contained in:
@@ -8,30 +8,21 @@ 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
|
||||||
steps:
|
steps:
|
||||||
- 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
|
||||||
@@ -80,4 +71,4 @@ jobs:
|
|||||||
curl -f --user "${{ secrets.CI_USER }}:${{ secrets.CI_PASSWORD }}" \
|
curl -f --user "${{ secrets.CI_USER }}:${{ secrets.CI_PASSWORD }}" \
|
||||||
-X POST \
|
-X POST \
|
||||||
--upload-file ./$CHART_FILE \
|
--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