Skip to content

Commit

Permalink
feat(ci): add ci
Browse files Browse the repository at this point in the history
  • Loading branch information
kaiehrhardt committed May 31, 2024
1 parent b767045 commit 292d746
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/container-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: container build
on:
push:
branches:
- main
pull_request:
schedule:
- cron: '0 0 * * *'
jobs:
container-build:
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- name: checkout
uses: actions/checkout@v4
with:
ssh-key: "${{ secrets.COMMIT_KEY }}"
- name: container-build
uses: infinite-automations/full-build-push-action@main
with:
token: "${{ secrets.GITHUB_TOKEN }}"
checkout-deploy-key: "${{ secrets.COMMIT_KEY }}"
platforms: "linux/amd64"
18 changes: 18 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: golangci-lint
on:
pull_request:
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
- name: templ
run: |
go install github.com/a-h/templ/cmd/templ@latest
templ generate
- name: golangci-lint
uses: golangci/golangci-lint-action@v4
with:
version: latest
21 changes: 21 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: release
on:
push:
branches:
- main
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
steps:
- name: checkout
uses: actions/checkout@v4
with:
ssh-key: "${{ secrets.COMMIT_KEY }}"
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 292d746

Please sign in to comment.