Skip to content

Commit

Permalink
Auto release fix (#123)
Browse files Browse the repository at this point in the history
# What 
* Use auto relesase shared workflow 

# Why 
* https://cloudposse.atlassian.net/browse/DEV-1747
  • Loading branch information
goruha committed Apr 8, 2024
1 parent 210b5bf commit faa2509
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 16 deletions.
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

0 comments on commit faa2509

Please sign in to comment.