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 26, 2024
1 parent b57e37d commit e4f2a94
Show file tree
Hide file tree
Showing 14 changed files with 2,796 additions and 26 deletions.
39 changes: 14 additions & 25 deletions .github/workflows/push-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,43 +3,32 @@ 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

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
x86_64:
multiarch:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: cachix/install-nix-action@v21
- 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
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
- uses: docker/setup-qemu-action@v3
with:
platforms: arm64
- uses: DeterminateSystems/nix-installer-action@v9
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
extra-conf: |
extra-platforms = aarch64-linux
- uses: DeterminateSystems/magic-nix-cache-action@v2
- run: nix run --impure .#dockerManifest
env:
VERSION: "latest"
GITHUB_TOKEN: ${{ github.token }}
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 e4f2a94

Please sign in to comment.