Skip to content

Commit

Permalink
Revert "Merge pull request #1 from honeycombio/nl.circleci"
Browse files Browse the repository at this point in the history
This reverts commit 0b0200a, reversing
changes made to 31dbacd.
  • Loading branch information
dstrelau committed Feb 24, 2023
1 parent 6b57e96 commit 4f7792e
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 94 deletions.
92 changes: 0 additions & 92 deletions .circleci/config.yml

This file was deleted.

78 changes: 78 additions & 0 deletions .github/workflows/ko.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
---
name: Ko

on: [push, pull_request, create] # create is for tags

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
- name: Fix outdated things
run: |
go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.3.0
go get -u golang.org/x/sys
- name: Lint
uses: golangci/golangci-lint-action@v2
with:
version: latest
args: --timeout=5m

- name: Build
run: make

- name: Test
run: make test

- name: Install ko
run: |
# go install github.com/google/ko@latest
curl -sL https://github.com/google/ko/releases/download/v0.8.3/ko_0.8.3_Linux_x86_64.tar.gz | tar -xzv ko || true
./ko version # check that it installed; if not, this step will fail
- name: Set tags
id: tags
run: |
set -euo pipefail
set -x
TAGS="latest,${{ github.sha }}"
github_tag="$(echo ${{ github.ref }} | sed -n '/refs\/tags\//p' | sed 's|refs/tags/||')"
if [[ "${github_tag}" != "" ]]; then
TAGS="${TAGS},${github_tag}"
fi
echo "::set-output name=tags::$TAGS"
- name: Build docker image
run: |
./ko publish \
--local \
--base-import-paths \
--tags ${{ steps.tags.outputs.tags }} \
--platform=linux/amd64,linux/arm64 \
.
- name: Log in to the Container registry
if: startsWith( github.ref, 'refs/tags/' )
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Push docker image if this build was triggered by a tag
if: startsWith( github.ref, 'refs/tags/' )
run: |
KO_DOCKER_REPO=ghcr.io/${{ github.repository_owner }} \
./ko publish \
--base-import-paths \
--tags ${{ steps.tags.outputs.tags }} \
--platform=linux/amd64,linux/arm64 \
.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# kspan - Turning Kubernetes Events into spans

Originally forked from https://github.com/ismith/kspan, itself a fork of https://github.com/puckpuck/kspan, itself a fork of https://github.com/weaveworks-experiments/kspan.

## This project is a Work In Progress, under active evolution.

Most Kubernetes components produce Events when something interesting happens.
Expand Down

0 comments on commit 4f7792e

Please sign in to comment.