chore(): more refined release process
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
name: Lint and Test Charts
|
name: Lint and Test Charts
|
||||||
|
run-name: Helm Chart Testing
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
name: Build and Test
|
name: Build and Test
|
||||||
run-name: Reference Branch Build 🚀
|
run-name: Reference Branch Build
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
|
|||||||
78
.gitea/workflows/release.yaml
Normal file
78
.gitea/workflows/release.yaml
Normal file
@@ -0,0 +1,78 @@
|
|||||||
|
name: Release
|
||||||
|
run-name: Release 🚀
|
||||||
|
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
Test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Check out repository code
|
||||||
|
uses: actions/checkout@v5
|
||||||
|
- name: Setup Go
|
||||||
|
uses: actions/setup-go@v6
|
||||||
|
with:
|
||||||
|
go-version: '1.25.x'
|
||||||
|
- name: golangci-lint
|
||||||
|
uses: golangci/golangci-lint-action@v8
|
||||||
|
with:
|
||||||
|
version: v2.1
|
||||||
|
- name: Test with the Go CLI
|
||||||
|
run: go test ./... -v
|
||||||
|
- name: Run Gosec Security Scanner
|
||||||
|
uses: securego/gosec@master
|
||||||
|
with:
|
||||||
|
args: ./...
|
||||||
|
Build_Image_amd64:
|
||||||
|
runs-on: ubuntu-latest-amd64
|
||||||
|
steps:
|
||||||
|
- name: Check out repository code
|
||||||
|
uses: actions/checkout@v5
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
with:
|
||||||
|
driver: remote
|
||||||
|
endpoint: tcp://buildkit-service.buildkit-service.svc:1234
|
||||||
|
- name: Log in to Gitea OCI
|
||||||
|
uses: docker/login-action@v2
|
||||||
|
with:
|
||||||
|
registry: git.uploadfilter24.eu
|
||||||
|
username: ${{ vars.GA_USER }}
|
||||||
|
password: ${{ secrets.GA_PAT }}
|
||||||
|
- name: Build and Push the Docker Image
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
|
id: build-and-push
|
||||||
|
with:
|
||||||
|
platforms: linux/amd64
|
||||||
|
context: .
|
||||||
|
file: ./Dockerfile
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
git.uploadfilter24.eu/covidnetes/${{ github.event.repository.name }}:${{ github.event.release.tag_name }}
|
||||||
|
Build_Image_arm64:
|
||||||
|
runs-on: ubuntu-latest-arm64
|
||||||
|
steps:
|
||||||
|
- name: Check out repository code
|
||||||
|
uses: actions/checkout@v5
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
with:
|
||||||
|
driver: remote
|
||||||
|
endpoint: tcp://buildkit-service.buildkit-service.svc:1234
|
||||||
|
- name: Log in to Gitea OCI
|
||||||
|
uses: docker/login-action@v2
|
||||||
|
with:
|
||||||
|
registry: git.uploadfilter24.eu
|
||||||
|
username: ${{ vars.GA_USER }}
|
||||||
|
password: ${{ secrets.GA_PAT }}
|
||||||
|
- name: Build and Push the Docker Image
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
|
id: build-and-push
|
||||||
|
with:
|
||||||
|
platforms: linux/arm64
|
||||||
|
context: .
|
||||||
|
file: ./Dockerfile
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
git.uploadfilter24.eu/covidnetes/${{ github.event.repository.name }}:${{ github.event.release.tag_name }}
|
||||||
Reference in New Issue
Block a user