Skip to content

Commit

Permalink
Merge pull request #104 from philips-labs/bump-example-vault-terraform
Browse files Browse the repository at this point in the history
  • Loading branch information
marcofranssen authored Nov 18, 2022
2 parents b9fc99c + da1e295 commit c1a2117
Show file tree
Hide file tree
Showing 8 changed files with 60 additions and 26 deletions.
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,10 @@ updates:
directory: "/"
schedule:
interval: "weekly"

- package-ecosystem: "terraform"
# Workflow files stored in the
# default location of `.github/workflows`
directory: "/example/vault/environments/local"
schedule:
interval: "monthly"
14 changes: 7 additions & 7 deletions .github/workflows/golang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@ jobs:
make release-vars > /tmp/spiffe-vault-release-vars.env
source /tmp/spiffe-vault-release-vars.env
if [[ -n "$LDFLAGS" ]]; then
echo "::set-output name=LDFLAGS::$LDFLAGS"
echo "ldflags=$LDFLAGS" >> $GITHUB_OUTPUT
fi
if [[ -n "$GIT_HASH" ]]; then
echo "::set-output name=GIT_HASH::$GIT_HASH"
echo "git_hash=$GIT_HASH" >> $GITHUB_OUTPUT
fi
rm -f /tmp/spiffe-vault-release-vars.env
Expand All @@ -119,19 +119,19 @@ jobs:
version: latest
args: release --rm-dist ${{ (!startsWith(github.ref, 'refs/tags/') && '--snapshot') || '' }}
env:
LDFLAGS: ${{ steps.release-vars.outputs.ldflags }}
GIT_HASH: ${{ steps.release-vars.outputs.git_hash }}
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
LDFLAGS: ${{ steps.release-vars.outputs.LDFLAGS }}
GIT_HASH: ${{ steps.release-vars.outputs.GIT_HASH }}
COSIGN_PASSWORD: ${{ secrets.COSIGN_PASSWORD }}

- name: Get container info
id: container_info
if: startsWith(github.ref, 'refs/tags/')
run: |
export CONTAINER_DIGEST=$(make container-digest GITHUB_REF=${{ github.ref_name }})
echo "::set-output name=container_digest::$CONTAINER_DIGEST"
echo "::set-output name=container_tags::$(make container-tags CONTAINER_DIGEST="${CONTAINER_DIGEST}" | paste -s -d ',' -)"
echo "::set-output name=container_repos::$(make container-repos CONTAINER_DIGEST="${CONTAINER_DIGEST}" | jq --raw-input . | jq --slurp -c)"
echo "container_digest=$CONTAINER_DIGEST" >> $GITHUB_OUTPUT
echo "container_tags=$(make container-tags CONTAINER_DIGEST="${CONTAINER_DIGEST}" | paste -s -d ',' -)" >> $GITHUB_OUTPUT
echo "container_repos=$(make container-repos CONTAINER_DIGEST="${CONTAINER_DIGEST}" | jq --raw-input . | jq --slurp -c)" >> $GITHUB_OUTPUT
- name: Logout from container registries
if: ${{ always() }}
Expand Down
2 changes: 1 addition & 1 deletion example/vault/.terraform-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.8
1.3.4
33 changes: 19 additions & 14 deletions example/vault/environments/local/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions example/vault/environments/local/versions.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
terraform {
required_version = ">= 1.0.8"

required_providers {
vault = {
source = "hashicorp/vault"
version = "~> 3.11.0"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
terraform {
required_version = ">= 0.14.5"
required_version = ">= 1.0.8"

required_providers {
vault = {
source = "hashicorp/vault"
version = ">=2.21.0"
version = ">= 3.0.0"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
terraform {
required_version = ">= 0.14.5"
required_version = ">= 1.0.8"

required_providers {
vault = {
source = "hashicorp/vault"
version = ">=2.22.1"
version = ">= 3.0.0"
}
}
}
10 changes: 10 additions & 0 deletions example/vault/modules/transit/versions.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
terraform {
required_version = ">= 1.0.8"

required_providers {
vault = {
source = "hashicorp/vault"
version = ">= 3.0.0"
}
}
}

0 comments on commit c1a2117

Please sign in to comment.