Skip to content

Commit

Permalink
Merge branch 'main' into release-pr-commenter
Browse files Browse the repository at this point in the history
  • Loading branch information
goruha authored May 20, 2024
2 parents a701a60 + 4831149 commit 747b1a9
Show file tree
Hide file tree
Showing 7 changed files with 224 additions and 26 deletions.
74 changes: 74 additions & 0 deletions .github/workflows/shared-github-action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: "Shared github action workflow"

on:
workflow_call:
inputs:
organization:
description: "Repository owner organization (ex. acme for repo acme/example)"
required: false
default: ${{ github.event.repository.owner.login }}
type: string
repository:
description: "Repository name (ex. example for repo acme/example)"
required: false
default: ${{ github.event.repository.name }}
type: string
tests-prefix:
description: "Workflows file name prefix to run as tests"
required: false
type: string
default: 'test-*'
publish:
description: "Whether to publish a new release immediately"
required: false
default: "true"
type: string
runs-on:
description: "Overrides job runs-on setting (json-encoded list)"
type: string
required: false
default: '["ubuntu-latest"]'

permissions:
contents: write
actions: write

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false

jobs:
ci-readme:
uses: cloudposse/github-actions-workflows/.github/workflows/ci-readme.yml@shared-workflows
name: "Readme"
if: ${{ github.event_name == 'push' }}
with:
runs-on: ${{ inputs.runs-on }}
secrets: inherit

ci-gha:
uses: cloudposse/github-actions-workflows/.github/workflows/ci-github-action.yml@main
name: "CI"
with:
organization: ${{ inputs.organization }}
repository: ${{ inputs.repository }}
ref: ${{ github.event_name == 'push' && github.ref || github.event.pull_request.head.ref }}
tests-prefix: ${{ inputs.tests-prefix }}

ci:
runs-on: ${{ fromJSON(inputs.runs-on) }}
if: ${{ always() }}
steps:
- run: |
echo '${{ toJSON(needs) }}' # easier debug
! ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}
needs: [ ci-gha, ci-readme ]

release:
needs: [ ci ]
name: "Release"
if: ${{ github.event_name == 'push' }}
uses: cloudposse/.github/.github/workflows/shared-auto-release.yml@main
with:
publish: ${{ inputs.publish }}
secrets: inherit
26 changes: 26 additions & 0 deletions .github/workflows/shared-terraform-chatops.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: "Shared Terraform ChatOps"

on:
workflow_call:
inputs:
runs-on:
description: "Overrides job runs-on setting (json-encoded list)"
type: string
required: false
default: '["ubuntu-latest"]'
secrets:
github_access_token:
description: "GitHub API token"
required: true

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false

jobs:
ci-terraform-chatops:
uses: cloudposse/github-actions-workflows/.github/workflows/ci-terraform-chatops.yml@main
with:
runs-on: ${{ inputs.runs-on }}
secrets:
github_access_token: ${{ secrets.github_access_token }}
70 changes: 70 additions & 0 deletions .github/workflows/shared-terraform-module.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: "Shared terraform module"
on:
workflow_call:
inputs:
runs-on:
description: "Overrides job runs-on setting (json-encoded list)"
type: string
required: false
default: '["ubuntu-latest"]'
secrets:
REPO_ACCESS_TOKEN:
description: "GitHub API token"
required: true

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false

jobs:
ci-terraform:
uses: cloudposse/github-actions-workflows/.github/workflows/ci-terraform.yml@shared-workflows
name: "CI"
with:
# Workaround for https://github.com/community/community/discussions/9099
# We should switch to nofilter once it's fixed
filter-mode: ${{ github.event_name == 'pull_request' && 'diff_context' || 'nofilter' }}
suggestions: "${{ github.event_name == 'pull_request' }}"
runs-on: ${{ inputs.runs-on }}

ci-readme:
uses: cloudposse/github-actions-workflows/.github/workflows/ci-readme.yml@shared-workflows
name: "Readme"
if: ${{ github.event_name == 'push' }}
with:
runs-on: ${{ inputs.runs-on }}
secrets: inherit

ci-codeowners:
uses: cloudposse/github-actions-workflows/.github/workflows/ci-codeowners.yml@shared-workflows
name: "CI"
with:
is_fork: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository }}
runs-on: ${{ inputs.runs-on }}
secrets:
github_access_token: ${{ secrets.REPO_ACCESS_TOKEN }}

ci-labels:
runs-on: ${{ fromJSON(inputs.runs-on) }}
name: "CI / Labels Validate"
steps:
- uses: cloudposse/github-action-release-label-validator@v1

ci:
runs-on: ${{ fromJSON(inputs.runs-on) }}
if: ${{ always() }}
steps:
- run: |
echo '${{ toJSON(needs) }}' # easier debug
! ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}
needs: [ ci-terraform, ci-readme, ci-codeowners, ci-labels ]

auto-release:
name: "Release"
needs: [ci]
uses: cloudposse/.github/.github/workflows/shared-auto-release.yml@shared-workflows
if: ${{ github.event_name == 'push' }}
with:
runs-on: ${{ inputs.runs-on }}
publish: true
secrets: inherit
32 changes: 32 additions & 0 deletions .github/workflows/shared-terraform-scheduled.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: "Shared terraform scheduled"

on:
workflow_call:
inputs:
runs-on:
description: "Overrides job runs-on setting (json-encoded list)"
type: string
required: false
default: '["ubuntu-latest"]'
secrets:
REPO_ACCESS_TOKEN:
description: "GitHub API token"
required: true

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false

jobs:
context:
uses: cloudposse/github-actions-workflows/.github/workflows/scheduled-context.yml@main
with:
runs-on: ${{ inputs.runs-on }}
secrets:
github_access_token: ${{ secrets.REPO_ACCESS_TOKEN }}

readme:
uses: cloudposse/github-actions-workflows/.github/workflows/scheduled-readme.yml@main
with:
runs-on: ${{ inputs.runs-on }}
secrets: inherit
20 changes: 7 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@


<!-- markdownlint-disable -->
<a href="https://cpco.io/homepage"><img src=".github/banner.png?raw=true" alt="Project Banner"/></a><br/>
<a href="https://cpco.io/homepage"><img src="https://github.com/cloudposse/.github/blob/main/.github/banner.png?raw=true" alt="Project Banner"/></a><br/>
<p align="right">
<a href="https://github.com/cloudposse/.github/commits/main/"><img src="https://img.shields.io/github/last-commit/cloudposse/.github/main?style=for-the-badge" alt="Last Update"/></a><a href="https://slack.cloudposse.com"><img src="https://slack.cloudposse.com/for-the-badge.svg" alt="Slack Community"/></a></p>
<!-- markdownlint-restore -->
Expand Down Expand Up @@ -51,10 +51,6 @@ This repository fulfills several unique functions functions for the Cloud Posse







## Examples

To add all repository bootstrapping files to a new repo:
Expand All @@ -66,23 +62,21 @@ To add all repository bootstrapping files to a new repo:





## ✨ Contributing

This project is under active development, and we encourage contributions from our community.



Many thanks to our outstanding contributors:

<a href="https://github.com/cloudposse/.github/graphs/contributors">
<img src="https://contrib.rocks/image?repo=cloudposse/.github&max=24" />
</a>

### 🐛 Bug Reports & Feature Requests

Please use the [issue tracker](https://github.com/cloudposse/.github/issues) to report any bugs or file feature requests.

### 💻 Developing

If you are interested in being a contributor and want to get involved in developing this project or help out with Cloud Posse's other projects, we would love to hear from you!
Hit us up in [Slack](https://cpco.io/slack?utm_source=github&utm_medium=readme&utm_campaign=cloudposse/.github&utm_content=slack), in the `#cloudposse` channel.
For 🐛 bug reports & feature requests, please use the [issue tracker](https://github.com/cloudposse/.github/issues).

In general, PRs are welcome. We follow the typical "fork-and-pull" Git workflow.
1. Review our [Code of Conduct](https://github.com/cloudposse/.github/?tab=coc-ov-file#code-of-conduct) and [Contributor Guidelines](https://github.com/cloudposse/.github/blob/main/CONTRIBUTING.md).
Expand Down
9 changes: 5 additions & 4 deletions README.md.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
{{- $deprecated := has (ds "config") "deprecated" }}
{{- $is_terraform := (strings.Contains "terraform-" ((ds "config").github_repo)) -}}
{{- $utm_link := printf "%%s?utm_source=%s&utm_medium=%s&utm_campaign=%s&utm_content=%s" "github" "readme" (ds "config").github_repo "%s" -}}
{{- $banner := printf "https://github.com/%s/blob/main/.github/banner.png?raw=true" (ds "config").github_repo -}}
{{- $homepage := printf $utm_link "https://cpco.io/homepage" "" -}}
{{- $logo := "https://cloudposse.com/logo-300x69.svg" -}}
{{- $terraform_modules := printf $utm_link "https://cpco.io/terraform-modules" "terraform_modules" -}}
Expand Down Expand Up @@ -38,9 +39,9 @@
>
> Use Cloud Posse's ready-to-go [terraform architecture blueprints](https://cloudposse.com/reference-architecture/) for AWS to get up and running quickly.
>
> ✅ We build it with you.<br/>
> ✅ You own everything.<br/>
> ✅ Your team wins.<br/>
> ✅ We build it together with your team.<br/>
> ✅ Your team owns everything.<br/>
> ✅ 100% Open Source and backed by fanatical support.<br/>
>
> {{ .cta }}
> <details><summary>📚 <strong>Learn More</strong></summary>
Expand Down Expand Up @@ -80,7 +81,7 @@
# (deprecated) {{(ds "config").name}}
{{- else }}
{{- if (file.Exists ".github/banner.png") -}}
<a href="https://cpco.io/homepage"><img src=".github/banner.png?raw=true" alt="Project Banner"/></a><br/>
<a href="https://cpco.io/homepage"><img src="{{ $banner }}" alt="Project Banner"/></a><br/>
{{ if has (ds "config") "badges" }}<p align="right">{{- end -}}
{{- else -}}
# {{(ds "config").name}} <a href="{{ $homepage }}"><img align="right" src="{{ $logo }}" width="150" /></a>
Expand Down
19 changes: 10 additions & 9 deletions profile/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,21 @@
<a href="https://cloudposse.com/quiz/" title="Request Quote"><img src="https://img.shields.io/badge/Request_Quote-success.svg?style=for-the-badge" alt="Request Quote"></a>
</p>


> [!IMPORTANT]
> ### We're a DevOps Accelerator for Funded Startups and Enterprises
>
> Use our ready-to-go [terraform architecture blueprints](https://cloudposse.com/services/) for AWS to get up and running quickly.
>
> ✅ We build it with you.<br/>
> ✅ You own everything.<br/>
> ✅ Your team wins.<br/>
>
> Skip the consultants and the DIY headaches.
>
> Use our ready-to-go [terraform architecture blueprints](https://cloudposse.com/) for AWS to get up and running quickly.
>
> ✅ Production-ready AWS infrastructure in weeks, not months<br/>
> ✅ Backed by our fanatical support<br/>
> ✅ So good, we offer a money-back guarantee<br/>
>
> [![Request Quote](https://img.shields.io/badge/Request_Quote-success.svg?style=for-the-badge)](https://cloudposse.com/quiz/)
>
> Just browsing? Kickstart your journey with [Atmos](https://atmos.tools), dive into discussions on [Slack](https://slack.cloudposse.com), and get insights at our weekly [office hours](https://cloudposse.com/office-hours). Discover how Cloud Posse's open-source solutions can elevate your organization.
>
> Just browsing? Kickstart your journey with [Atmos](https://atmos.tools), dive into discussions on [Slack](https://slack.cloudposse.com), and gain insights on our weekly [office hours](https://cloudposse.com/office-hours). Discover how Cloud Posse's open-source solutions can elevate your organization.
>
> <details>
> <summary><strong>💡 Learn More about Cloud Posse</strong></summary>
>
Expand Down

0 comments on commit 747b1a9

Please sign in to comment.