chore: cleanup docker & nix workflows

This commit is contained in:
seth 2024-01-27 23:53:23 -05:00
parent 24c8406590
commit 46fd02605f
No known key found for this signature in database
GPG key ID: D31BD0D494BBEE86
2 changed files with 8 additions and 6 deletions

View file

@ -37,7 +37,7 @@ jobs:
name: container-${{ matrix.arch }} name: container-${{ matrix.arch }}
path: ${{ steps.build.outputs.path }} path: ${{ steps.build.outputs.path }}
if-no-files-found: error if-no-files-found: error
retention-days: 1 retention-days: 3
push: push:
name: Push image name: Push image
@ -79,12 +79,12 @@ jobs:
architectures=("x86_64" "aarch64") architectures=("x86_64" "aarch64")
for arch in "${architectures[@]}"; do for arch in "${architectures[@]}"; do
docker load < images/container-"$arch"/*.tar.gz docker load < images/container-"$arch"/*.tar.gz
docker tag refraction:latest-"$arch" ${{ env.TAG }}-"$arch" docker tag refraction:latest-"$arch" "$TAG"-"$arch"
docker push ${{ env.TAG }}-"$arch" docker push ${{ env.TAG }}-"$arch"
done done
docker manifest create ${{ env.TAG }} \ docker manifest create "$TAG" \
--amend ${{ env.TAG }}-x86_64 \ --amend "$TAG"-x86_64 \
--amend ${{ env.TAG }}-aarch64 --amend "$TAG"-aarch64
docker manifest push ${{ env.TAG }} docker manifest push "$TAG"

View file

@ -8,6 +8,7 @@ on:
jobs: jobs:
build: build:
name: Build
strategy: strategy:
matrix: matrix:
os: [ubuntu-latest, macos-latest] os: [ubuntu-latest, macos-latest]
@ -28,6 +29,7 @@ jobs:
run: nix build -L --fallback run: nix build -L --fallback
check: check:
name: Check
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps: