-
Notifications
You must be signed in to change notification settings - Fork 32
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 #61 from danitso/release-0.4.0
Release 0.4.0
- Loading branch information
Showing
118 changed files
with
3,109 additions
and
659 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: Create release | ||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
jobs: | ||
release: | ||
name: Tag | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- | ||
name: Checkout the code | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- | ||
name: Install and configure Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.15 | ||
- | ||
name: Install and configure GoReleaser | ||
env: | ||
GORELEASER_VERSION: '0.155.1' | ||
run: | | ||
curl -sL -o goreleaser_amd64.deb "https://github.com/goreleaser/goreleaser/releases/download/v${GORELEASER_VERSION}/goreleaser_amd64.deb" | ||
sudo dpkg -i goreleaser_amd64.deb | ||
rm -f goreleaser_amd64.deb | ||
- | ||
name: Import the GPG signing key | ||
env: | ||
GPG_KEY: ${{ secrets.GPG_KEY }} | ||
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | ||
run: | | ||
mkdir -p ~/.gnupg | ||
chmod 0700 ~/.gnupg | ||
cat << EOF > ~/.gnupg/gpg.conf | ||
use-agent | ||
pinentry-mode loopback | ||
EOF | ||
echo "$GPG_KEY" | base64 -d | gpg --batch --allow-secret-key-import --import | ||
gpg --keyid-format LONG --list-secret-keys | ||
cat << EOF > ~/.gnupg/gpg-agent.conf | ||
default-cache-ttl 7200 | ||
max-cache-ttl 31536000 | ||
allow-loopback-pinentry | ||
allow-preset-passphrase | ||
EOF | ||
echo RELOADAGENT | gpg-connect-agent | ||
printf '%s' "$GPG_PASSPHRASE" > ./.gpg_passphrase | ||
- | ||
name: Create release | ||
env: | ||
GPG_FINGERPRINT: ${{ secrets.GPG_FINGERPRINT }} | ||
run: | | ||
goreleaser build --parallelism 2 --rm-dist --timeout 1h |
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,34 @@ | ||
name: Test changes | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
- master | ||
- 'v*' | ||
jobs: | ||
test: | ||
name: Pull Request | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- | ||
name: Checkout the code | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- | ||
name: Install and configure Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.15 | ||
- | ||
name: Install and configure GoReleaser | ||
env: | ||
GORELEASER_VERSION: '0.155.1' | ||
run: | | ||
curl -sL -o goreleaser_amd64.deb "https://github.com/goreleaser/goreleaser/releases/download/v${GORELEASER_VERSION}/goreleaser_amd64.deb" | ||
sudo dpkg -i goreleaser_amd64.deb | ||
rm -f goreleaser_amd64.deb | ||
- | ||
name: Create snapshot | ||
run: | | ||
goreleaser build --config .goreleaser.test.yml --parallelism 2 --rm-dist --snapshot --timeout 1h |
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,37 @@ | ||
before: | ||
hooks: | ||
- go mod tidy | ||
builds: | ||
- env: | ||
- CGO_ENABLED=0 | ||
mod_timestamp: '{{ .CommitTimestamp }}' | ||
flags: | ||
- -trimpath | ||
ldflags: | ||
- '-s -w -X main.version={{.Version}} -X main.commit={{.Commit}}' | ||
goos: | ||
- freebsd | ||
- windows | ||
- linux | ||
- darwin | ||
goarch: | ||
- amd64 | ||
- '386' | ||
- arm | ||
- arm64 | ||
ignore: | ||
- goos: darwin | ||
goarch: '386' | ||
binary: '{{ .ProjectName }}_v{{ .Version }}' | ||
archives: | ||
- format: zip | ||
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}' | ||
checksum: | ||
name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS' | ||
algorithm: sha256 | ||
signs: | ||
- artifacts: none | ||
release: | ||
draft: false | ||
changelog: | ||
skip: true |
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,48 @@ | ||
before: | ||
hooks: | ||
- go mod tidy | ||
builds: | ||
- env: | ||
- CGO_ENABLED=0 | ||
mod_timestamp: '{{ .CommitTimestamp }}' | ||
flags: | ||
- -trimpath | ||
ldflags: | ||
- '-s -w -X main.version={{.Version}} -X main.commit={{.Commit}}' | ||
goos: | ||
- freebsd | ||
- windows | ||
- linux | ||
- darwin | ||
goarch: | ||
- amd64 | ||
- '386' | ||
- arm | ||
- arm64 | ||
ignore: | ||
- goos: darwin | ||
goarch: '386' | ||
binary: '{{ .ProjectName }}_v{{ .Version }}' | ||
archives: | ||
- format: zip | ||
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}' | ||
checksum: | ||
name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS' | ||
algorithm: sha256 | ||
signs: | ||
- artifacts: checksum | ||
args: | ||
- "--batch" | ||
- "--local-user" | ||
- "{{ .Env.GPG_FINGERPRINT }}" | ||
- "--output" | ||
- "${signature}" | ||
- "--passphrase-fd" | ||
- "0" | ||
- "--detach-sign" | ||
- "${artifact}" | ||
stdin_file: ./.gpg_passphrase | ||
release: | ||
draft: false | ||
changelog: | ||
skip: true |
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ cache: | |
- $HOME/gopath/pkg/mod | ||
|
||
go: | ||
- 1.13.x | ||
- 1.15.x | ||
|
||
git: | ||
depth: 1 | ||
|
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,29 @@ | ||
--- | ||
layout: page | ||
title: Alias | ||
permalink: /data-sources/alias | ||
nav_order: 1 | ||
parent: Data Sources | ||
subcategory: Virtual Environment | ||
--- | ||
|
||
# Data Source: Alias | ||
|
||
Retrieves information about a specific alias. | ||
|
||
## Example Usage | ||
|
||
``` | ||
data "proxmox_virtual_environment_cluster_alias" "local_network" { | ||
name = "local_network" | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
* `name` - (Required) Alias name. | ||
|
||
## Attribute Reference | ||
|
||
* `cidr` - (Required) Network/IP specification in CIDR format. | ||
* `comment` - (Optional) Alias comment. |
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,26 @@ | ||
--- | ||
layout: page | ||
title: Aliases | ||
permalink: /data-sources/aliases | ||
nav_order: 2 | ||
parent: Data Sources | ||
subcategory: Virtual Environment | ||
--- | ||
|
||
# Data Source: Aliases | ||
|
||
Retrieves the identifiers for all the available aliases. | ||
|
||
## Example Usage | ||
|
||
``` | ||
data "proxmox_virtual_environment_cluster_aliases" "available_aliases" {} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
There are no arguments available for this data source. | ||
|
||
## Attribute Reference | ||
|
||
* `alias_ids` - The pool identifiers. |
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
Oops, something went wrong.