[WIP] Add quake-kube-controller #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | |
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 | |
- uses: docker/setup-qemu-action@v3 | |
with: | |
platforms: arm64 | |
- uses: cachix/install-nix-action@v21 | |
with: | |
extra-conf: | | |
extra-platforms = aarch64-linux | |
- uses: DeterminateSystems/magic-nix-cache-action@v2 | |
- run: nix run --impure .#dockerManifest | |
env: | |
VERSION: "test" | |
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 |