Skip to content

Commit

Permalink
add arm docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
ingon committed Jan 9, 2025
1 parent c96ec95 commit ee982b7
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ on:
push:
branches: [main]

permissions:
packages: write

jobs:
build:
name: Build
Expand Down
24 changes: 23 additions & 1 deletion .github/workflows/tip.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ permissions:
packages: write

jobs:
docker-build:
docker-build-x86:
name: Build docker image
runs-on: ubuntu-latest
steps:
Expand All @@ -26,3 +26,25 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker push
run: nix develop --command skopeo copy "docker-archive:result" "docker://ghcr.io/connet-dev/connet:latest"

docker-build-arm:
name: Build docker image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v27
with:
extra_nix_config: system = aarch64-linux
nix_path: nixpkgs=channel:nixos-unstable
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Docker build
run: nix build .#docker
- name: Docker login
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker push
run: nix develop --command skopeo copy "docker-archive:result" "docker://ghcr.io/connet-dev/connet:latest"

0 comments on commit ee982b7

Please sign in to comment.