Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
  • Loading branch information
choffmeister committed Nov 20, 2021
1 parent aa12af0 commit d09cac0
Show file tree
Hide file tree
Showing 19 changed files with 144 additions and 405 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: release
on:
push:
tags:
- "*"
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v2
with:
go-version: 1.17.x
- uses: docker/login-action@v1
with:
registry: https://ghcr.io
username: airfocusio
password: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
distribution: goreleaser
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

19 changes: 19 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: test
on:
push:
branches:
- "*"
pull_request:
branches:
- main
env:
GO111MODULE: on
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v2
with:
go-version: 1.17.x
- uses: actions/checkout@v2
- run: go test .
12 changes: 1 addition & 11 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1 @@
/bin
/.go
/.go-cache
/.push-*
/.container-*
/.dockerfile-*

# Emacs save files
*~
\#*\#
.\#*
dist/
26 changes: 26 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# This is an example .goreleaser.yml file with some sensible defaults.
# Make sure to check the documentation at https://goreleaser.com
before:
hooks:
- go mod tidy
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
dockers:
- image_templates:
- "ghcr.io/airfocusio/{{ .ProjectName }}:{{ .Tag }}"
- "ghcr.io/airfocusio/{{ .ProjectName }}:latest"
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "0.0.0-dev"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM scratch
ENTRYPOINT ["/bin/default-gateway-agent"]
COPY default-gateway-agent /bin/default-gateway-agent
21 changes: 0 additions & 21 deletions Dockerfile.in

This file was deleted.

171 changes: 0 additions & 171 deletions Makefile

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The spec in `default-gateway-agent.yaml` specifies the `kube-system` namespace f
TODO

```
kubectl create configmap default-gateway-agent --from-file=agent-config --namespace=kube-system
kubectl create configmap default-gateway-agent --from-file=default-gatway-agent-config.yaml --namespace=kube-system
```

Note that we created the `ConfigMap` in the same namespace as the DaemonSet Pods, and named the `ConfigMap` to match the spec in `default-gateway-agent.yaml`. This is necessary for the `ConfigMap` to appear in the Pods' filesystems.
Expand All @@ -32,7 +32,7 @@ See [RELEASE](RELEASE.md).

## Developing

Clone the repo to `$GOPATH/src/github.com/choffmeister/default-gateway-agent`.
Clone the repo to `$GOPATH/src/github.com/airfocusio/default-gateway-agent`.

The build tooling is based on [thockin/go-build-template](https://github.com/thockin/go-build-template).

Expand Down
36 changes: 0 additions & 36 deletions RELEASE.md

This file was deleted.

41 changes: 0 additions & 41 deletions build/build.sh

This file was deleted.

Loading

0 comments on commit d09cac0

Please sign in to comment.