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

workflows & registry #6

Merged
merged 1 commit into from
Jul 5, 2023
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
1 change: 1 addition & 0 deletions .changes/3.0.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
## 3.0.0 - 2023-06-21
6 changes: 6 additions & 0 deletions .changes/header.tpl.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html),
and is generated by [Changie](https://github.com/miniscruff/changie).
Empty file added .changes/unreleased/.gitkeep
Empty file.
3 changes: 3 additions & 0 deletions .changes/unreleased/Changed-20230621-124431.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
kind: Changed
body: workflows & registry
time: 2023-06-21T12:44:31.986721+02:00
26 changes: 26 additions & 0 deletions .changie.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
changesDir: .changes
unreleasedDir: unreleased
headerPath: header.tpl.md
changelogPath: CHANGELOG.md
versionExt: md
versionFormat: '## {{.Version}} - {{.Time.Format "2006-01-02"}}'
kindFormat: "### {{.Kind}}"
changeFormat: "* {{.Body}}"
kinds:
- label: Added
auto: minor
- label: Changed
auto: major
- label: Deprecated
auto: minor
- label: Removed
auto: major
- label: Fixed
auto: patch
- label: Security
auto: patch
newlines:
afterChangelogHeader: 1
beforeChangelogVersion: 1
endOfVersion: 1
envPrefix: CHANGIE_
16 changes: 16 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Terraform Checks
on:
push:
branches:
- main
pull_request:

jobs:
terraform:
permissions:
actions: read
contents: read
security-events: write
pull-requests: write
uses: labdigital-main/terraform-github-workflows/.github/workflows/terraform-module-v1.yaml@main
secrets: inherit
18 changes: 18 additions & 0 deletions .github/workflows/registry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Push to Registry

on:
workflow_dispatch:
inputs:
version:
description: "The version of the release"
required: true
default: "0.0.0"

jobs:
registry:
uses: labdigital-main/terraform-github-workflows/.github/workflows/terraform-module-release-v2.yaml@main
secrets: inherit
with:
module-version: ${{ github.event.inputs.version }}
jfrog-repo: aws
jfrog-url: https://labdigital.jfrog.io
26 changes: 26 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Module Release

on:
push:
branches:
- main
workflow_dispatch:

permissions:
contents: write
pull-requests: write
actions: write

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Prepare release
uses: labd/changie-release-action@v0.3.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}