chore: cleanup docker & nix workflows
This commit is contained in:
parent
24c8406590
commit
46fd02605f
2 changed files with 8 additions and 6 deletions
12
.github/workflows/docker.yml
vendored
12
.github/workflows/docker.yml
vendored
|
@ -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"
|
||||||
|
|
2
.github/workflows/nix.yml
vendored
2
.github/workflows/nix.yml
vendored
|
@ -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:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue