Skip to content

Commit

Permalink
Ja/3239 release tagging (#11)
Browse files Browse the repository at this point in the history
* feat: ignore local TF dev files

* feat: add release tagging

This just versions the entire repo. As we add more sandboxes we'll
probably want to tracka and tag versions for each, but this is good
enough to get started.
  • Loading branch information
jordan-acosta authored Dec 7, 2023
1 parent 5bbd173 commit d1ab436
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @nuonco/team
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# See GitHub's documentation for more information on this file:
# https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates
version: 2
updates:
- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "daily"
42 changes: 42 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
name: release
on:
push:
branches:
- main

permissions:
contents: write
id-token: write
issues: read
packages: write
pull-requests: write
statuses: write
actions: read

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

defaults:
run:
shell: bash

jobs:
bump_tag:
name: bump tag
runs-on: ubuntu-latest
steps:
- name: Determine next version
id: semver
uses: ietf-tools/semver-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: main
patchAll: true

- name: Push tag
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
custom_tag: ${{ steps.semver.outputs.nextStrict }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# ignore local TF dev files
.terraform

0 comments on commit d1ab436

Please sign in to comment.