-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
59 additions
and
157 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
|
||
name: goreleaser | ||
|
||
on: | ||
|
@@ -9,46 +8,40 @@ jobs: | |
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Checkout | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- | ||
name: Fetch tags | ||
- name: Fetch tags | ||
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* | ||
- name: Ensure tag match the current version | ||
run: | | ||
if [ "v$(grep '// ci-version-check' cmd/version.go | sed -r 's/.+return\s"(.+)".+/\1/')" != "$(git tag | sort --version-sort | tail -1)" ] ; then | ||
echo "Tag version do not match application version" | ||
exit 1 | ||
fi | ||
- | ||
name: Set up Go | ||
- name: Set up Go | ||
uses: actions/setup-go@main | ||
with: | ||
go-version: 1.16.x | ||
go-version: 1.19.x | ||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v2 | ||
with: | ||
version: latest | ||
- | ||
name: Run GoReleaser | ||
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v1 | ||
with: | ||
version: latest | ||
args: release --rm-dist | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }} | ||
- | ||
name: Prepare AUR package | ||
- name: Prepare AUR package | ||
run: | | ||
version=$(awk -F'"' '/ci-version-check/{print $2}' cmd/version.go) | ||
md5version=$(curl -sL https://github.com/Qovery/helm-freeze/archive/v${version}.tar.gz --output - | md5sum | awk '{ print $1 }') | ||
sed -i "s/pkgver=tbd/pkgver=$version/" PKGBUILD | ||
echo "md5sums=('${md5version}')" >> PKGBUILD | ||
- | ||
name: Publish AUR package | ||
- name: Publish AUR package | ||
uses: KSXGitHub/[email protected] | ||
with: | ||
pkgname: helm-freeze | ||
|
@@ -58,4 +51,4 @@ jobs: | |
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }} | ||
commit_message: Update AUR package | ||
ssh_keyscan_types: rsa,dsa,ecdsa,ed25519 | ||
force_push: 'true' | ||
force_push: "true" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,31 @@ | ||
module github.com/Qovery/helm-freeze | ||
|
||
go 1.15 | ||
go 1.19 | ||
|
||
require ( | ||
github.com/go-git/go-git/v5 v5.4.2 | ||
github.com/otiai10/copy v1.6.0 | ||
github.com/spf13/cobra v1.0.0 | ||
gopkg.in/yaml.v2 v2.3.0 | ||
github.com/otiai10/copy v1.7.0 | ||
github.com/spf13/cobra v1.5.0 | ||
gopkg.in/yaml.v2 v2.4.0 | ||
) | ||
|
||
require ( | ||
github.com/Microsoft/go-winio v0.4.16 // indirect | ||
github.com/ProtonMail/go-crypto v0.0.0-20210428141323-04723f9f07d7 // indirect | ||
github.com/acomagu/bufpipe v1.0.3 // indirect | ||
github.com/emirpasic/gods v1.12.0 // indirect | ||
github.com/go-git/gcfg v1.5.0 // indirect | ||
github.com/go-git/go-billy/v5 v5.3.1 // indirect | ||
github.com/imdario/mergo v0.3.12 // indirect | ||
github.com/inconshreveable/mousetrap v1.0.0 // indirect | ||
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect | ||
github.com/kevinburke/ssh_config v0.0.0-20201106050909-4977a11b4351 // indirect | ||
github.com/mitchellh/go-homedir v1.1.0 // indirect | ||
github.com/sergi/go-diff v1.1.0 // indirect | ||
github.com/spf13/pflag v1.0.5 // indirect | ||
github.com/xanzy/ssh-agent v0.3.0 // indirect | ||
golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b // indirect | ||
golang.org/x/net v0.0.0-20210326060303-6b1517762897 // indirect | ||
golang.org/x/sys v0.0.0-20210502180810-71e4cd670f79 // indirect | ||
gopkg.in/warnings.v0 v0.1.2 // indirect | ||
) |
Oops, something went wrong.