File tree Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ RUN yum install -y \
3737WORKDIR /tmp/fluent-bit-$FLB_VERSION/
3838RUN git clone https://github.com/fluent/fluent-bit.git /tmp/fluent-bit-$FLB_VERSION/
3939WORKDIR /tmp/fluent-bit-$FLB_VERSION/build/
40- RUN git fetch && git checkout ${FLB_VERSION}
40+ RUN git fetch --all --tags && git checkout tags/v ${FLB_VERSION} -b v${FLB_VERSION} && git describe --tags
4141RUN cmake -DFLB_DEBUG=On \
4242 -DFLB_TRACE=Off \
4343 -DFLB_JEMALLOC=On \
Original file line number Diff line number Diff line change 11FROM golang:1.12
22ENV GO111MODULE on
33
4- # Kinesis Streams
54ARG KINESIS_PLUGIN_CLONE_URL=https://github.com/aws/amazon-kinesis-streams-for-fluent-bit.git
6- ARG KINESIS_PLUGIN_BRANCH=mainline
5+ ARG KINESIS_PLUGIN_TAG=v1.5.1
6+ ARG FIREHOSE_PLUGIN_CLONE_URL=https://github.com/aws/amazon-kinesis-firehose-for-fluent-bit.git
7+ ARG FIREHOSE_PLUGIN_TAG=v1.4.1
8+ ARG CLOUDWATCH_PLUGIN_CLONE_URL=https://github.com/aws/amazon-cloudwatch-logs-for-fluent-bit.git
9+ ARG CLOUDWATCH_PLUGIN_TAG=v1.3.2
10+
11+ # Kinesis Streams
712
813RUN git clone $KINESIS_PLUGIN_CLONE_URL /kinesis-streams
914WORKDIR /kinesis-streams
10- RUN git fetch && git checkout $KINESIS_PLUGIN_BRANCH
15+ RUN git fetch --all --tags && git checkout tags/$KINESIS_PLUGIN_TAG -b $KINESIS_PLUGIN_TAG && git describe --tags
1116RUN go mod download
1217RUN make release
1318
1419# Firehose
15- ARG FIREHOSE_PLUGIN_CLONE_URL=https://github.com/aws/amazon-kinesis-firehose-for-fluent-bit.git
16- ARG FIREHOSE_PLUGIN_BRANCH=mainline
1720
1821RUN git clone $FIREHOSE_PLUGIN_CLONE_URL /kinesis-firehose
1922WORKDIR /kinesis-firehose
20- RUN git fetch && git checkout $FIREHOSE_PLUGIN_BRANCH
23+ RUN git fetch --all --tags && git checkout tags/$FIREHOSE_PLUGIN_TAG -b $FIREHOSE_PLUGIN_TAG && git describe --tags
2124RUN go mod download
2225RUN make release
2326
2427# CloudWatch
25- ARG CLOUDWATCH_PLUGIN_CLONE_URL=https://github.com/aws/amazon-cloudwatch-logs-for-fluent-bit.git
26- ARG CLOUDWATCH_PLUGIN_BRANCH=mainline
2728
2829RUN git clone $CLOUDWATCH_PLUGIN_CLONE_URL /cloudwatch
2930WORKDIR /cloudwatch
30- RUN git fetch && git checkout $CLOUDWATCH_PLUGIN_BRANCH
31+ RUN git fetch --all --tags && git checkout tags/$CLOUDWATCH_PLUGIN_TAG -b $CLOUDWATCH_PLUGIN_TAG && git describe --tags
3132RUN go mod download
3233RUN make release
You can’t perform that action at this time.
0 commit comments