This repository was archived by the owner on Sep 26, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +55
-6
lines changed
Expand file tree Collapse file tree 5 files changed +55
-6
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,7 @@ aws ecr get-login --region $AWS_REGION --no-include-email | bash
44echo " Building docker image..."
55cp /tmp/pkg/fluent-plugin-kubernetes-objects-* .gem docker
66echo " Copy latest fluent-plugin-splunk-hec gem from S3"
7- aws s3 cp s3://k8s-ci-artifacts/fluent-plugin-splunk-hec-${FLUENT_SPLUNK_HEC_GEM_VERSION} .gem ./docker
8- docker build --no-cache -t splunk/fluent-plugin-kubernetes-objects:ci ./docker
7+ docker build --build-arg VERSION=$FLUENT_SPLUNK_HEC_GEM_VERSION --no-cache -t splunk/fluent-plugin-kubernetes-objects:ci ./docker
98docker tag splunk/fluent-plugin-kubernetes-objects:ci $AWS_ACCOUNT_ID .dkr.ecr.$AWS_REGION .amazonaws.com/k8s-ci-objects:latest
109echo " Push docker image to ecr..."
1110docker push $AWS_ACCOUNT_ID .dkr.ecr.$AWS_REGION .amazonaws.com/k8s-ci-objects:latest | awk ' END{print}'
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ set -e
3+ echo " Building docker image..."
4+ cp /tmp/pkg/fluent-plugin-kubernetes-metrics-* .gem docker
5+ VERSION=` cat VERSION`
6+ docker build --build-arg VERSION=$VERSION --no-cache -t splunk/fluent-plugin-kubernetes-objects:ci ./docker
7+ docker tag splunk/fluent-plugin-kubernetes-objects:ci splunk/${DOCKERHUB_REPO_NAME} :${VERSION}
8+ echo " Push docker image to splunk dockerhub..."
9+ docker login --username=$DOCKERHUB_ACCOUNT_ID --password=$DOCKERHUB_ACCOUNT_PASS
10+ docker push splunk/${DOCKERHUB_REPO_NAME} :${VERSION} | awk ' END{print}'
11+ echo " Docker image pushed successfully to docker-hub."
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ set -e
3+ wget https://github.com/tcnksm/ghr/releases/download/v0.12.0/ghr_v0.12.0_linux_amd64.tar.gz
4+ tar -xzvf ghr_v0.12.0_linux_amd64.tar.gz
5+ sudo chmod +x ghr_v0.12.0_linux_amd64
6+ sudo mv ghr_v0.12.0_linux_amd64/ghr /usr/local/bin/ghr
7+
8+ VERSION=` cat VERSION`
9+ echo " Pushing SCK release to github releases...${VERSION} "
10+
11+ ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -n " ${RELEASE_TITLE} " -b " ${RELEASE_BODY} " -draft ${VERSION} /tmp/pkg/
Original file line number Diff line number Diff line change 5959 command : |
6060 .circleci/build_and_push.sh
6161
62+ release :
63+ docker :
64+ - image : circleci/ruby:2.6.1-node-browsers
65+ working_directory : ~/repo
66+ steps :
67+ - attach_workspace :
68+ at : /tmp
69+ - checkout
70+ - setup_remote_docker :
71+ reusable : true
72+ - run :
73+ name : Install dependencies
74+ command : |
75+ .circleci/install_dep.sh
76+ - run :
77+ name : Build and push docker image to dockerhub
78+ command : |
79+ .circleci/build_and_push_to_dockerhub.sh
80+ - run :
81+ name : Upload gem to Github
82+ command : |
83+ .circleci/build_and_push_to_github_release.sh
84+
6285
6386workflows :
6487 version : 2
Original file line number Diff line number Diff line change 11FROM ruby:2.5.1-slim
22
3- LABEL maintainer=
"Shubham Jain <[email protected] >" 3+ LABEL maintainer=
"Splunk Inc. <[email protected] >" 4+ LABEL Description="Splunk Connect for Kubernetes docker image" Vendor="Splunk Inc."
5+
6+ ARG VERSION
7+ ENV VERSION=${VERSION}
48
59# skip runtime bundler installation
610ENV FLUENTD_DISABLE_BUNDLER_INJECTION 1
@@ -13,10 +17,11 @@ RUN set -e \
1317 && apt-get install -y --no-install-recommends libjemalloc1 jq \
1418 && buildDeps="make gcc g++ wget" \
1519 && apt-get install -y --no-install-recommends $buildDeps \
16- && gem install -N fluentd -v "1.2 .0" \
17- && gem install -N fluent-plugin-prometheus -v "1.0.1 " \
20+ && gem install -N fluentd -v "1.4 .0" \
21+ && gem install -N fluent-plugin-prometheus -v "1.3.0 " \
1822 && gem install -N fluent-plugin-jq -v "0.5.1" \
19- && gem install -N oj -v "3.5.1" \
23+ && gem install -N oj -v "3.7.9" \
24+ && gem install -N fluent-plugin-splunk-hec:${VERSION} \
2025 && gem install -N /tmp/*.gem \
2126 && dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')" \
2227 && wget -O /usr/bin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v1.2.1/dumb-init_1.2.1_$dpkgArch \
You can’t perform that action at this time.
0 commit comments