I hereby claim:
- I am tanmay-bhat on github.
- I am tanmay1337 (https://keybase.io/tanmay1337) on keybase.
- I have a public key ASDgjDTvLAgikgjfbQI-tDqFKUPgUbNnTmZ_9oLZWQ79WAo
To claim this, I am signing this object:
| sudo mkdir -p /usr/local/bin && sudo curl -\# https://raw.githubusercontent.com/MattiSG/adblock/master/adblock --output /usr/local/bin/adblock && sudo chmod u+x /usr/local/bin/adblock |
I hereby claim:
To claim this, I am signing this object:
| image: "python:3.6" # base dockerimage on which the stages will run. Can be different for each stage. | |
| stages: # each stage runs on a new Docker image. data is not persisted between stages by default. | |
| - publish_image # build docker image and push to registry | |
| build and push docker image: | |
| stage: publish_image | |
| only: # only runs the step when git tag is done and it matches one of the mentioned regex patterns | |
| variables: | |
| - $CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+\.[0-9]+-[0-9]+\.[0-9]+\.[0-9]+$/ |
| #base image in which all stages are executed | |
| image: alpine | |
| # Ordered stages of the CI pipeline | |
| stages: | |
| - build_and_push | |
| build and push docker image: | |
| stage: build_and_push | |
| only: | |
| variables: |
| name: Go | |
| on: | |
| push: | |
| branches: [ main ] | |
| tags: | |
| - 'v*.*.*' | |
| jobs: | |
| build: |
| kind: Deployment | |
| metadata: | |
| name: nginx | |
| spec: | |
| replicas: 10 | |
| selector: | |
| matchLabels: | |
| app: nginx | |
| template: | |
| metadata: |
| #!/bin/bash | |
| #if any namespace needs to be excluded, add that in grep section | |
| ns=$(kubectl get ns --no-headers | grep -Ev 'kube-system|kube-public' | cut -d ' ' -f1 ) | |
| for namespace in $ns; do | |
| kubectl -n $namespace rollout restart deploy | |
| done |
| apiVersion: argoproj.io/v1alpha1 | |
| kind: Application | |
| metadata: | |
| name: kube-ops-view-demo | |
| finalizers: | |
| - resources-finalizer.argocd.argoproj.io | |
| namespace: argocd | |
| annotations: | |
| argocd-image-updater.argoproj.io/image-list: registry.digitalocean.com/tanmaybhat/kube-ops-view | |
| argocd-image-updater.argoproj.io/write-back-method: git:secret:argocd/gitlab-token |
| image: | |
| repository: grafana/loki | |
| tag: 2.4.1 | |
| pullPolicy: IfNotPresent | |
| ## Optionally specify an array of imagePullSecrets. | |
| ## Secrets must be manually created in the namespace. | |
| ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ | |
| ## | |
| # pullSecrets: |
| - name: prometheus-server | |
| image: quay.io/prometheus/prometheus:v2.33.3 | |
| args: | |
| - '--storage.tsdb.retention.time=15d' | |
| - '--config.file=/etc/config/prometheus.yml' | |
| - '--storage.tsdb.path=/data' | |
| - '--web.console.libraries=/etc/prometheus/console_libraries' | |
| - '--web.console.templates=/etc/prometheus/consoles' | |
| - '--web.enable-lifecycle' | |
| - '--web.enable-remote-write-receiver' |