Skip to content

Instantly share code, notes, and snippets.

View caarlos0's full-sized avatar
:shipit:

Carlos Alexandro Becker caarlos0

:shipit:
View GitHub Profile

GoReleaser Contributor License Agreement

I give GoReleaser permission to license my contributions on any terms they like. I am giving them this license in order to make it possible for them to accept my contributions into their project.

As far as the law allows, my contributions come as is, without any warranty or condition, and I will not be liable to anyone for any damages related to this software or this license, under any kind of legal claim.

#!/bin/sh
for size in XL XXL XS S M L; do
curl -sf -H "Authorization: Bearer $GITHUB_TOKEN" "https://api.github.com/repos/kubernetes/kubernetes/labels/size/$size" |
jq '. | { "name": .name, "color": .color, "description": .description }' |
curl -sfXPOST -d @- -H "Authorization: Bearer $GITHUB_TOKEN" https://api.github.com/repos/$REPO/labels
done
@caarlos0
caarlos0 / five.md
Created November 26, 2019 01:47 — forked from mfridman/five.md
top 5 most common .goreleaser files

10666361bf2ddb7070c9ea6756b1e8ce327a9edb

8 found

builds:
  # List of builds
  - # First Build
    env:
    - CGO_ENABLED=0
@caarlos0
caarlos0 / top-50.md
Created November 26, 2019 01:45 — forked from mfridman/top-50.md
top 50 project (by stars) using goreleaser
prometheus-operator:
kubelet:
serviceMonitor:
metricRelabelings:
- sourceLabels: ["__name__"]
regex: 'storage_operation.*'
action: drop
cAdvisorMetricRelabelings:
- sourceLabels: ["__name__"]
regex: '(container_network_tcp.*|container_network_udp.*|container_fs_.*|container_tasks_state.*|container_memory_failures_total|.*swap.*)'
#!/bin/sh
set -ex
TAR_FILE="/tmp/kubeval.tar.gz"
RELEASES_URL="https://github.com/garethr/kubeval/releases"
test -z "$TMPDIR" && TMPDIR="$(mktemp -d)"
last_version() {
curl -sL -o /dev/null -w %{url_effective} "$RELEASES_URL/latest" |
rev |
@caarlos0
caarlos0 / vale.sh
Created April 9, 2018 18:43
valelint godownloader script
#!/bin/sh
set -e
# Code generated by godownloader on 2018-04-09T18:43:07Z. DO NOT EDIT.
#
usage() {
this=$1
cat <<EOF
$this: download go binaries for ValeLint/vale
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: example-app
spec:
replicas: 2
template:
metadata:
labels:
app: example-app
tap 'caarlos0/tap'
tap 'caskroom/cask'
tap 'caskroom/fonts'
tap 'caskroom/versions'
tap 'eqnxio/ngrok'
tap 'getantibody/tap'
tap 'go-delve/delve'
tap 'goreleaser/tap'
tap 'homebrew/bundle'
tap 'homebrew/core'