-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #157 from jeremmfr/main
Release v1.14.0
- Loading branch information
Showing
115 changed files
with
7,023 additions
and
1,082 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 |
---|---|---|
|
@@ -2,7 +2,7 @@ name: GolangCI-Lint-Latest | |
on: | ||
push: | ||
branches: | ||
- master | ||
- main | ||
jobs: | ||
run: | ||
name: Run | ||
|
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 |
---|---|---|
|
@@ -37,15 +37,13 @@ jobs: | |
goos: [linux, windows, darwin, freebsd] | ||
goarch: [amd64, arm64] | ||
exclude: | ||
- goos: darwin | ||
goarch: arm64 | ||
- goos: windows | ||
goarch: arm64 | ||
steps: | ||
- name: Set up Go 1.15 | ||
- name: Set up Go 1.16 | ||
uses: actions/setup-go@v1 | ||
with: | ||
go-version: 1.15 | ||
go-version: 1.16 | ||
id: go | ||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
|
@@ -124,3 +122,57 @@ jobs: | |
asset_path: ./${{ env.REPO_NAME }}_${{ env.RELEASE_VERSION }}_SHA256SUMS | ||
asset_name: ${{ env.REPO_NAME }}_${{ env.RELEASE_VERSION }}_SHA256SUMS | ||
asset_content_type: application/octet-stream | ||
website: | ||
name: Deploy Website | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Clone original Terraform Website | ||
run: git clone https://github.com/hashicorp/terraform-website.git /tmp/terraform-website | ||
- name: Copy necessary files and co | ||
working-directory: ./.terraform-website/ | ||
run: | | ||
cp /tmp/terraform-website/content/config.rb . | ||
cp /tmp/terraform-website/content/Gemfile . | ||
cp /tmp/terraform-website/content/Gemfile.lock . | ||
cp /tmp/terraform-website/content/middleman_helpers.rb . | ||
cp -r /tmp/terraform-website/content/source/assets ./source/ | ||
cp /tmp/terraform-website/content/source/layouts/inner.erb ./source/layouts/ | ||
echo "redirect 'index.html', to: 'docs/providers/junos/index.html'" >> config.rb | ||
- name: Setup ruby | ||
uses: actions/setup-ruby@v1 | ||
with: | ||
ruby-version: "2.x" | ||
- name: Install middleman | ||
working-directory: ./.terraform-website/ | ||
run: | | ||
gem install bundler bundler:1.17.3 | ||
# json fail with (1.8.3.1) in Gemfile.lock | ||
bundle update json --jobs 4 --retry 3 | ||
bundle install --jobs 4 --retry 3 | ||
- name: Build Website | ||
working-directory: ./.terraform-website/ | ||
run: bundle exec middleman build --verbose | ||
- name: Download google files from S3 | ||
uses: ItsKarma/[email protected] | ||
with: | ||
args: s3 cp s3://terraform-provider-junos.jeremm.fr/google72955f25e01c2a06.html .terraform-website/build/ | ||
env: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
- name: Upload Website on S3 | ||
uses: ItsKarma/[email protected] | ||
with: | ||
args: s3 sync .terraform-website/build/ s3://terraform-provider-junos.jeremm.fr/ --delete | ||
env: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
- name: Invalidate Cloudfront Distribution | ||
uses: chetan/[email protected] | ||
env: | ||
PATHS: '/docs/*' | ||
AWS_REGION: 'eu-west-1' | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
DISTRIBUTION: ${{ secrets.DISTRIBUTION_ID }} |
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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
module terraform-provider-junos | ||
|
||
go 1.14 | ||
go 1.15 | ||
|
||
require ( | ||
github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 | ||
github.com/hashicorp/terraform-plugin-sdk/v2 v2.4.0 | ||
github.com/hashicorp/terraform-plugin-sdk/v2 v2.4.4 | ||
github.com/jeremmfr/go-netconf v0.3.1 | ||
github.com/jeremmfr/junosdecode v1.0.0 | ||
golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897 | ||
golang.org/x/crypto v0.0.0-20210220033148-5ea612d1eb83 | ||
) |
Oops, something went wrong.