Skip to content

Commit a3b5a96

Browse files
committed
initial import
0 parents  commit a3b5a96

File tree

9 files changed

+1768
-0
lines changed

9 files changed

+1768
-0
lines changed

.cargo/config.toml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[target.'cfg(target_env = "musl")']
2+
rustflags = ["-C", "target-feature=+crt-static", "-C", "linker=rust-lld"]

.dockerignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
target/

.github/workflows/build.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: build
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-22.04
8+
steps:
9+
- uses: actions/checkout@v3
10+
- uses: dtolnay/[email protected]
11+
with:
12+
targets: x86_64-unknown-linux-musl
13+
toolchain: stable
14+
- run: |
15+
cargo build --release
16+
cp target/release/k8s-ping .
17+
shell: bash
18+
- uses: docker/login-action@v2
19+
with:
20+
registry: ghcr.io
21+
username: ${{ github.actor }}
22+
password: ${{ secrets.GITHUB_TOKEN }}
23+
- uses: docker/build-push-action@v3
24+
with:
25+
tags: ghcr.io/kentik/k8s-ping
26+
push: true
27+
context: .

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/target

0 commit comments

Comments
 (0)