Skip to content

Commit

Permalink
Merge pull request #1 from WoodProgrammer/release-pipeline
Browse files Browse the repository at this point in the history
auto release
  • Loading branch information
WoodProgrammer committed May 21, 2023
2 parents b9a2601 + 277aa65 commit 9caf2dc
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 2 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Release Go project

on:
push:
tags:
- "*"

jobs:
build:
name: GoReleaser build
runs-on: ubuntu-latest

steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Set up Go 1.19.1
uses: actions/setup-go@v2
with:
go-version: 1.19.1
id: go

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@master
with:
version: latest
args: release --rm-dist
workdir: plugin
env:
GITHUB_TOKEN: ${{ secrets.GO_RELEASER_GITHUB_TOKEN }}
3 changes: 1 addition & 2 deletions src/backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package main

import (
"context"
"fmt"

metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

Expand All @@ -20,7 +19,7 @@ func getBackup(namespace string, clientset *kubernetes.Clientset) []HelmRelease

secrets, err := clientset.CoreV1().Secrets(namespace).List(context.TODO(), listOptions)
if err != nil {
fmt.Println(err)
ErrorLogger.Println(err)
}

for _, item := range secrets.Items {
Expand Down

0 comments on commit 9caf2dc

Please sign in to comment.