File tree Expand file tree Collapse file tree 3 files changed +29
-1
lines changed Expand file tree Collapse file tree 3 files changed +29
-1
lines changed Original file line number Diff line number Diff line change 1+ ARG ARCH
2+
3+ FROM --platform=linux/${ARCH} mcr.microsoft.com/azurelinux/distroless/minimal:3.0 AS linux
4+ ARG ARTIFACT_DIR
5+
6+ COPY ${ARTIFACT_DIR}/bin/azure-ip-masq-merger /azure-ip-masq-merger
7+ ENTRYPOINT ["/azure-ip-masq-merger" ]
Original file line number Diff line number Diff line change 1-
21steps :
32- template : utils/rename-dockerfile-references.steps.yaml
43 parameters :
@@ -59,6 +58,10 @@ steps:
5958 echo "##vso[task.setvariable variable=azureIpamVersion;isOutput=true]$AZUREIPAMVERSION"
6059 echo "azureIpamVersion: $AZUREIPAMVERSION"
6160
61+ AZUREIPMASQMERGERVERSION=$(make azure-ip-masq-merger-version)
62+ echo "##vso[task.setvariable variable=azureIpMasqMergerVersion;isOutput=true]$AZUREIPMASQMERGERVERSION"
63+ echo "azureIpMasqMergerVersion: $AZUREIPMASQMERGERVERSION"
64+
6265 CNIVERSION=$(make cni-version)
6366 echo "##vso[task.setvariable variable=cniVersion;isOutput=true]$CNIVERSION"
6467 echo "cniVersion: $CNIVERSION"
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ set -eux
3+
4+ [[ $OS =~ windows ]] && { echo " azure-ip-masq-merger is not supported on Windows" ; exit 1; }
5+ FILE_EXT=' '
6+
7+ export CGO_ENABLED=0
8+
9+ mkdir -p " $OUT_DIR " /bin
10+ mkdir -p " $OUT_DIR " /files
11+
12+ pushd " $REPO_ROOT " /azure-ip-masq-merger
13+ GOOS=" $OS " go build -v -a -trimpath \
14+ -o " $OUT_DIR " /bin/azure-ip-masq-merger" $FILE_EXT " \
15+ -ldflags " -X github.com/Azure/azure-container-networking/azure-ip-masq-merger/internal/buildinfo.Version=$AZURE_IP_MASQ_MERGER_VERSION -X main.version=$AZURE_IP_MASQ_MERGER_VERSION " \
16+ -gcflags=" -dwarflocationlists=true" \
17+ .
18+ popd
You can’t perform that action at this time.
0 commit comments