Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto release fix #123

Merged
merged 5 commits into from
Apr 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# These settings are synced to GitHub by https://probot.github.io/apps/settings/
extends: cloudposse/.github

repository:
# A URL with more information about the repository
homepage: https://cloudposse.com

# Either `true` to enable projects for this repository, or `false` to disable them.
# If projects are disabled for the organization, passing `true` will cause an API error.
has_projects: false

# Either `true` to enable the wiki for this repository, `false` to disable it.
has_wiki: false
20 changes: 8 additions & 12 deletions .github/workflows/auto-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,13 @@ name: auto-release
on:
push:
branches:
- master
- main
- master
- production

jobs:
semver:
runs-on: ubuntu-latest
steps:
# Drafts your next Release notes as Pull Requests are merged into "master"
- uses: release-drafter/release-drafter@v5
with:
publish: true
prerelease: false
config-name: auto-release.yml
env:
GITHUB_TOKEN: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
auto:
uses: cloudposse/.github/.github/workflows/shared-auto-release.yml@main
with:
publish: true
secrets: inherit
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,16 @@ ENV AWS_VAULT_ENABLED=true
RUN apk add -u aws-vault@cloudposse~=4

# Install go for running terratest
RUN apk add -uU go
RUN apk add go@community --allow-untrusted

## Install terraform-config-inspect (required for bats tests)
ENV GO111MODULE="on"
RUN go get github.com/hashicorp/terraform-config-inspect && \
RUN go install github.com/hashicorp/terraform-config-inspect@latest && \
mv $(go env GOPATH)/bin/terraform-config-inspect /usr/local/bin/

# Install every "major" version of Terraform so we can use whichever one we want
RUN apk add -uU terraform@cloudposse \
RUN apk add -uU --force-broken-world \
terraform@cloudposse \
terraform-0.11@cloudposse \
terraform-0.12@cloudposse \
terraform-0.13@cloudposse \
Expand All @@ -82,7 +83,7 @@ ENV AWS_VAULT_ENABLED=true
# https://github.com/99designs/aws-vault/issues/689
# and until IMDSv2 is supported, aws-vault server does not work with kops 1.18
# https://github.com/99designs/aws-vault/issues/690
RUN apk add -uU aws-vault@cloudposse~=4
RUN apk add -uU aws-vault@cloudposse~=4 --force-broken-world

# Filesystem entry for tfstate
RUN s3 fstab '${TF_BUCKET}' '/' '/secrets/tf'
Expand Down
Loading