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 }}
path: ${{ steps.build.outputs.path }}
if-no-files-found: error
retention-days: 1
retention-days: 3
push:
name: Push image
@ -79,12 +79,12 @@ jobs:
architectures=("x86_64" "aarch64")
for arch in "${architectures[@]}"; do
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"
done
docker manifest create ${{ env.TAG }} \
--amend ${{ env.TAG }}-x86_64 \
--amend ${{ env.TAG }}-aarch64
docker manifest create "$TAG" \
--amend "$TAG"-x86_64 \
--amend "$TAG"-aarch64
docker manifest push ${{ env.TAG }}
docker manifest push "$TAG"

View file

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