Skip to content

Commit

Permalink
Merge pull request #1 from snapp-incubator/update/ci
Browse files Browse the repository at this point in the history
update ci
  • Loading branch information
1995parham authored Sep 7, 2024
2 parents 7066a2f + e9b2cf1 commit fc7e3df
Show file tree
Hide file tree
Showing 22 changed files with 115 additions and 97 deletions.
16 changes: 16 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
changelog:
categories:
- title: Bug Fixes 🐛
labels:
- bug
- title: Breaking Changes 🛠
labels:
- Semver-Major
- breaking-change
- title: Exciting New Features 🎉
labels:
- Semver-Minor
- enhancement
- title: Other Changes
labels:
- "*"
68 changes: 68 additions & 0 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
---
name: build-release
on:
push:
tags: [ v* ]

jobs:
docker:
name: docker
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2
- uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/metadata-action@v4
id: meta
with:
images: ghcr.io/${{ github.repository }}
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=sha,prefix=
- uses: docker/build-push-action@v2
with:
file: "Dockerfile"
context: .
platforms: linux/amd64
push: true
tags: |
${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
helm-chart:
name: helm-chart
needs: docker
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: helmify
run: make helm
- name: Chart | Push
uses: appany/helm-oci-chart-releaser@v0.3.0
with:
name: chaos-operator
repository: ${{ github.repository }}/helm-charts
tag: ${{ github.ref_name }}
path: charts/chaos-operator # Default charts/{name}
registry: ghcr.io
registry_username: ${{ github.repository_owner }}
registry_password: ${{ secrets.GITHUB_TOKEN }}

release:
name: release
needs: docker
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- name: release
run: gh release create ${{ github.ref_name }} --generate-notes --verify-tag
31 changes: 31 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: check
on:
push:
branches:
- main
pull_request:

jobs:
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: '1.21'
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
args: --timeout 5m

test:
name: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: run tests using make
run: make test
66 changes: 0 additions & 66 deletions .github/workflows/ci.yml

This file was deleted.

31 changes: 0 additions & 31 deletions .github/workflows/release.yaml

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit fc7e3df

Please sign in to comment.