Skip to content

Commit

Permalink
[WIP] Add quake-kube-controller
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRx committed Feb 25, 2024
1 parent b57e37d commit c3352d7
Show file tree
Hide file tree
Showing 14 changed files with 2,820 additions and 10 deletions.
42 changes: 33 additions & 9 deletions .github/workflows/push-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Push Image
on:
push:
# Sequence of patterns matched against refs/tags
branches:
- 'quake-kube-controller'
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10

Expand Down Expand Up @@ -33,13 +35,35 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- run: sudo apt-get install -y qemu-user-static
- uses: cachix/install-nix-action@v21
- uses: docker/setup-qemu-action@v3
with:
extra_nix_config: |
system = aarch64-linux
- name: Build
run: |
nix build .#container
skopeo login --username "${{ github.actor }}" --password "${{ secrets.GITHUB_TOKEN }}" ghcr.io
skopeo copy docker-archive://$(readlink -f ./result) docker://ghcr.io/chrisrx/quake-kube:latest
platforms: arm64
- uses: DeterminateSystems/nix-installer-action@v9
with:
extra-conf: |
extra-platforms = aarch64-linux
- uses: DeterminateSystems/magic-nix-cache-action@v2
- run: nix run --impure .#dockerManifest
env:
VERSION: "test"
GITHUB_ACTOR: chrisrx
GH_TOKEN: ${{ github.token }}

# aarch64:
# runs-on: ubuntu-latest
# permissions:
# contents: read
# packages: write
# steps:
# - name: Checkout
# uses: actions/checkout@v3
# - run: sudo apt-get install -y qemu-user-static
# - uses: cachix/install-nix-action@v21
# with:
# extra_nix_config: |
# system = aarch64-linux
# - name: Build
# run: |
# nix build .#container
# skopeo login --username "${{ github.actor }}" --password "${{ secrets.GITHUB_TOKEN }}" ghcr.io
# skopeo copy docker-archive://$(readlink -f ./result) docker://ghcr.io/chrisrx/quake-kube:latest
1 change: 1 addition & 0 deletions controllers/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target
Loading

0 comments on commit c3352d7

Please sign in to comment.