Skip to content

Commit

Permalink
ci: added release workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
henrywhitaker3 committed Jun 25, 2024
1 parent 0754861 commit c84757b
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Release

on:
push:
tags:
- 'v*'

jobs:
package:
runs-on: ubuntu-latest
permissions:
packages: write
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.SEMVER_GH_TOKEN }}

- name: Login to ghcr.io
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push operator image
uses: docker/build-push-action@v5
with:
push: true
tags: |
ghcr.io/henrywhitaker3/crunchy-users:latest
ghcr.io/henrywhitaker3/crunchy-users:${{ github.ref_name }}
build-args: |
VERSION=${{ github.ref_name }}
- name: Update chart appversion
run: echo ${{ github.ref_name }}
24 changes: 24 additions & 0 deletions .github/workflows/versioning.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Versioning

on:
workflow_dispatch:

permissions:
contents: read

jobs:
version:
name: version
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.SEMVER_GH_TOKEN }}
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v4
env:
GITHUB_TOKEN: ${{ secrets.SEMVER_GH_TOKEN }}

0 comments on commit c84757b

Please sign in to comment.