Skip to content

Commit

Permalink
ci: added ci steps
Browse files Browse the repository at this point in the history
  • Loading branch information
henrywhitaker3 committed Apr 19, 2024
1 parent d401cfe commit 40ccbbe
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
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 image
uses: docker/build-push-action@v5
with:
push: true
tags: |
ghcr.io/henrywhitaker3/prompage:latest
ghcr.io/henrywhitaker3/prompage:${{ github.ref_name }}
# - uses: actions/checkout@v4
# with:
# ref: main
# - name: Update helm chart with latest version
# run: |
# sed -E -i "s/version: v[0-9]+\.[0-9]+\.[0-9]+/version: ${{ github.ref_name }}/g" chart/values.yaml
# - uses: stefanzweifel/git-auto-commit-action@v5
# with:
# commit_message: "chore(chart): update version to ${{ github.ref_name }}"
26 changes: 26 additions & 0 deletions .github/workflows/versioning.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Versioning

on:
push:
branches:
- main

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 40ccbbe

Please sign in to comment.