forked from microsoft/terraform-provider-azuredevops
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
13 changed files
with
78 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,21 @@ | ||
FROM ubuntu:bionic | ||
ARG GO_VERSION=1.13 | ||
ARG TERRAFORM_VERSION=0.12.13 | ||
RUN apt-get update && \ | ||
apt-get install wget unzip gcc git -y && \ | ||
wget "https://dl.google.com/go/go${GO_VERSION}.linux-amd64.tar.gz" && \ | ||
tar -xvf "go${GO_VERSION}.linux-amd64.tar.gz" && \ | ||
mv go /usr/local && \ | ||
wget "https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip" && \ | ||
unzip "./terraform_${TERRAFORM_VERSION}_linux_amd64.zip" -d /usr/local/bin/ && \ | ||
rm "go${GO_VERSION}.linux-amd64.tar.gz" && \ | ||
rm "terraform_${TERRAFORM_VERSION}_linux_amd64.zip" && \ | ||
rm -rf /var/lib/apt/lists/* | ||
ENV PATH="${PATH}:/usr/local/go/bin" | ||
RUN git clone https://github.com/microsoft/terraform-provider-azuredevops.git && \ | ||
cd terraform-provider-azuredevops && \ | ||
./scripts/build.sh && \ | ||
./scripts/local-install.sh && \ | ||
rm -rf ../terrform-provider-azuredevops | ||
WORKDIR /root/workspace | ||
FROM ubuntu:bionic | ||
ARG GO_VERSION=1.13 | ||
ARG TERRAFORM_VERSION=0.12.13 | ||
RUN apt-get update && \ | ||
apt-get install wget unzip gcc git -y && \ | ||
wget "https://dl.google.com/go/go${GO_VERSION}.linux-amd64.tar.gz" && \ | ||
tar -xvf "go${GO_VERSION}.linux-amd64.tar.gz" && \ | ||
mv go /usr/local && \ | ||
wget "https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip" && \ | ||
unzip "./terraform_${TERRAFORM_VERSION}_linux_amd64.zip" -d /usr/local/bin/ && \ | ||
rm "go${GO_VERSION}.linux-amd64.tar.gz" && \ | ||
rm "terraform_${TERRAFORM_VERSION}_linux_amd64.zip" && \ | ||
rm -rf /var/lib/apt/lists/* | ||
ENV GOPATH=/root/go | ||
ENV PATH="${PATH}:${GOPATH}/bin:/usr/local/go/bin" | ||
RUN git clone https://github.com/microsoft/terraform-provider-azuredevops.git && \ | ||
cd terraform-provider-azuredevops && \ | ||
./scripts/build.sh && \ | ||
./scripts/local-install.sh && \ | ||
rm -rf ../terrform-provider-azuredevops | ||
WORKDIR /root/workspace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
. $(dirname $0)/commons.sh | ||
|
||
info "Formatting Go Files... If this fails, run 'find . -name \"*.go\" | xargs gofmt -s -w' to fix" | ||
( | ||
cd "$SOURCE_DIR" | ||
|
||
# This runs a go fmt on each file without using the 'go fmt ./...' syntax. | ||
# This is advantageous because it avoids having to download all of the go | ||
# dependencies that would have been triggered by using the './...' syntax. | ||
FILES_WITH_FMT_ISSUES=$(find . -name "*.go" | xargs gofmt -s -l | wc -l) | ||
|
||
# convert to integer... | ||
FILES_WITH_FMT_ISSUES=$(($FILES_WITH_FMT_ISSUES + 0)) | ||
|
||
info "Found $FILES_WITH_FMT_ISSUES with formatting issues..." | ||
exit $FILES_WITH_FMT_ISSUES | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters