Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Goreleaser main #1

Merged
merged 3 commits into from
Jan 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/gorelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Gorelease

on:
workflow_dispatch:
inputs:
registry:
type: choice
description: Select the container registry
options:
- dockerhub
- ghcr.io

env:
GH_TOKEN: ${{ github.token }}

permissions:
contents: write
id-token: write

jobs:
release:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
9 changes: 7 additions & 2 deletions package/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
FROM alpine
COPY bin/k3k /usr/bin/
COPY bin/k3kcli /usr/bin/

ARG BIN_K3K=bin/k3k
ARG BIN_K3KCLI=bin/k3kcli

COPY ${BIN_K3K} /usr/bin/
COPY ${BIN_K3KCLI} /usr/bin/

CMD ["k3k"]
4 changes: 3 additions & 1 deletion package/Dockerfile.kubelet
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# TODO: swicth this to BCI-micro or scratch. Left as base right now so that debug can be done a bit easier
FROM registry.suse.com/bci/bci-base:15.6

COPY bin/k3k-kubelet /usr/bin/
ARG BIN_K3K_KUBELET=bin/k3k-kubelet

COPY ${BIN_K3K_KUBELET} /usr/bin/

ENTRYPOINT ["/usr/bin/k3k-kubelet"]
Loading