Skip to content

Instantly share code, notes, and snippets.

Avatar
🧿
YAML Engineer

Engin Diri dirien

🧿
YAML Engineer
View GitHub Profile
@dirien
dirien / Dockerfile
Created Aug 21, 2022
Heredoc Golang Dockerfile
View Dockerfile
# syntax=docker/dockerfile:1.4.1
FROM golang:1.19 AS build
COPY <<EOF main.go
package main
import (
"fmt"
)
func main() {
fmt.Println("Hello Distroless-World")
View helm.md
  helm upgrade -i cilium cilium/cilium --version 1.11.3 \
  --namespace kube-system \
  --set azure.enabled=true \
  --set azure.resourceGroup=$AZURE_NODE_RESOURCE_GROUP \
  --set azure.subscriptionID=$AZURE_SUBSCRIPTION_ID \
  --set azure.tenantID=$AZURE_TENANT_ID \
  --set azure.clientID=$AZURE_CLIENT_ID \
  --set azure.clientSecret=$AZURE_CLIENT_SECRET \
 --set datapathMode=vxlan \
View .gorleaser-brew.yaml
brews:
- tap:
owner: dirien
name: goreleaser-homebrew
commit_author:
name: dirien
email: engin.diri@mail.schwarz
folder: Formula
homepage: "https://github.com/dirien/quick-bites"
description: "Different type of projects, not big enough to warrant a separate repo."
@dirien
dirien / azure-pipelines.yml
Last active Feb 20, 2022
Azure DevOps and GoReleaser - III
View azure-pipelines.yml
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
pr:
branches:
include:
- main
@dirien
dirien / .goreleaser.yaml
Created Feb 20, 2022
Azure DevOps and GoReleaser - II
View .goreleaser.yaml
# This is an example .goreleaser.yml file with some sensible defaults.
# Make sure to check the documentation at https://goreleaser.com
before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
builds:
- env:
- CGO_ENABLED=0
goarch:
@dirien
dirien / main.md
Last active Feb 20, 2022
Azure DevOps and GoReleaser - Part 1
View main.md

The example code, is a very simple go app. It just prints some variables.

package main

import (
	"fmt"
)

var (
@dirien
dirien / latest.md
Created Feb 12, 2022
download latest artifact from GitHub release
View latest.md
curl -s https://api.github.com/repos/<user>/<repo>/releases/latest | grep -E 'browser_download_url' | grep linux_amd64 | grep -Eo 'https://[^\"]*' | xargs wget -O - | tar -xz
@dirien
dirien / goreleaser.md
Created Feb 5, 2022
goreleaser-cloud-native
View goreleaser.md
# 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:
@dirien
dirien / goreleaser-cloud-native.md
Last active Feb 5, 2022
goreleaser-cloud-native
View goreleaser-cloud-native.md

The main.tf

terraform {
  required_providers {
    google  = {
      source  = "hashicorp/google"
      version = "4.9.0"
    }
    azurerm = {
@dirien
dirien / teleport.md
Last active Oct 9, 2021
Teleport: PoC
View teleport.md

Install teleport on Civo Instance

civo sshkey create key -k key.pub
Created an SSH key called key with ID 368a2903-92af-435b-aca4-6f361f409f37

civo instance create -i g3.medium -k 368a2903-92af-435b-aca4-6f361f409f37 -t 921fcb64-8abf-4a51-8823-027d9d75c1d4 -u root -w 
The instance late-summit has been created

ssh -i key root@<ip>