From 37331107148b8a8d448f1fe70c805f29a4a37010 Mon Sep 17 00:00:00 2001 From: Ankur Banerjee Date: Fri, 9 Sep 2022 01:58:07 +0100 Subject: [PATCH] Squashed commit of the following: commit fbbeb147f8484d0deb2301977251babd8dc1c704 Author: Ankur Banerjee Date: Fri Sep 9 01:56:54 2022 +0100 ci: Prerelease mode [skip ci] commit 054e90877366e2429d9cd2379d65f32331b503c7 Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri Sep 9 01:34:58 2022 +0100 chore(deps): Bump github.com/lib/pq from 1.10.6 to 1.10.7 (#29) Bump github.com/lib/pq from 1.10.6 to 1.10.7 Bumps [github.com/lib/pq](https://github.com/lib/pq) from 1.10.6 to 1.10.7. - [Release notes](https://github.com/lib/pq/releases) - [Commits](https://github.com/lib/pq/compare/v1.10.6...v1.10.7) --- updated-dependencies: - dependency-name: github.com/lib/pq dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit 397ad5cdfc65aa5c285218ea6bcacd3bc0b5a192 Author: Ankur Banerjee Date: Fri Sep 9 05:36:50 2022 +0530 fix: Docker image tag suffixes (#32) * Try another docker fix * Fix image tags commit e78689d1a5331864b4844deab1d709e0e9d41499 Author: Ankur Banerjee Date: Fri Sep 9 00:12:53 2022 +0100 fix: Docker image suffix commit 8ed9902c779bc96214cd31a75ef250591c9f2651 Author: Ankur Banerjee Date: Thu Sep 8 23:58:31 2022 +0100 fix: Docker Image tags commit 3d4d0406f7a95a08fb21518c3538967752cb3d6d Author: Ankur Banerjee Date: Fri Sep 9 03:53:02 2022 +0530 build: Fix network-specific Docker image tagging (#31) * Set Docker tags for BDJuno image * Added similar version-based tagging for Hasura CLI * Update lint.yml * Disable YAML linter again commit f8f2d5b03bc309bb4671cb82b69d51f094dfbc71 Author: Ankur Banerjee Date: Thu Sep 8 20:50:53 2022 +0100 chore: Update go.sum commit 96b5edcfbcc5ca647845c63184da5c2784d3993c Author: Ankur Banerjee Date: Thu Sep 8 20:49:22 2022 +0100 build: Disable LD Flags commit 7ce89458c6b33268eb4a56a5a9d84e27f77f4cda Author: Ankur Banerjee Date: Fri Sep 9 01:08:04 2022 +0530 feat: Semantic release config (#30) * Update README.md * Update .releaserc.json * Update package-lock.json * Update .releaserc.json * Fixed tag version * Update .releaserc.json --- .github/workflows/release.yml | 21 +++++++++++---------- .goreleaser.yml | 10 +++++----- go.mod | 2 +- go.sum | 4 ++-- 4 files changed, 19 insertions(+), 18 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 37aec8c65..c41753b61 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -107,8 +107,8 @@ jobs: images: registry.digitalocean.com/${{ env.IMAGE_NAME }} flavor: | latest=auto + prefix=${{ steps.set-network.outputs.NETWORK_NAME }}-,onlatest=true tags: | - ${{ steps.set-network.outputs.NETWORK_NAME }}-latest type=semver,pattern={{version}},value=${{ needs.release-binary.outputs.VERSION }} labels: | org.opencontainers.image.title="BDJuno for cheqd network" @@ -129,16 +129,12 @@ jobs: labels: ${{ steps.meta.outputs.labels }} - name: Push BDJuno image - run: | - docker push registry.digitalocean.com/${{ env.IMAGE_NAME }}:${{ steps.set-network.outputs.NETWORK_NAME }}-latest - docker push registry.digitalocean.com/${{ env.IMAGE_NAME }}:${{ needs.release-binary.outputs.VERSION }} + run: docker image push --all-tags registry.digitalocean.com/${{ env.IMAGE_NAME }} release-hasuracli: name: "Hasura CLI Docker Image" runs-on: ubuntu-latest - env: - IMAGE_NAME: ${{ github.repository }} - COMMIT_SHA: ${{ github.sha }} + needs: release-binary steps: - uses: actions/checkout@v3 @@ -171,9 +167,15 @@ jobs: uses: docker/metadata-action@v4 with: images: registry.digitalocean.com/cheqd/hasuracli + flavor: | + latest=auto + prefix=${{ steps.set-network.outputs.NETWORK_NAME }}-,onlatest=true tags: | - ${{ steps.set-network.outputs.NETWORK_NAME }}-latest + type=semver,pattern={{version}},value=${{ needs.release-binary.outputs.VERSION }} labels: | + org.opencontainers.image.title="Hasura CLI for BDJuno" + org.opencontainers.image.description="Standalone Hasura CLI for cheqd network BDJuno configuration" + org.opencontainers.image.source="https://github.com/cheqd/bdjuno" org.opencontainers.image.vendor="Cheqd Foundation Limited" org.opencontainers.image.created={{date 'dddd, MMMM Do YYYY, h:mm:ss a'}} org.opencontainers.image.documentation="https://docs.cheqd.io/node" @@ -189,5 +191,4 @@ jobs: labels: ${{ steps.meta.outputs.labels }} - name: Push Hasura CLI image - run: | - docker push registry.digitalocean.com/cheqd/hasuracli:${{ steps.set-network.outputs.NETWORK_NAME }}-latest + run: docker image push --all-tags registry.digitalocean.com/cheqd/hasuracli diff --git a/.goreleaser.yml b/.goreleaser.yml index 880452521..c8cc90a0b 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,4 +1,4 @@ -project_name: bdjuno +project_name: cheqd-bdjuno env: - GO111MODULE=on @@ -20,9 +20,9 @@ builds: flags: - -mod=readonly - -trimpath - ldflags: - - -X github.com/forbole/juno/v3/cmd.Version={{ .Version }} - - -X github.com/forbole/juno/v3/cmd.Commit={{ .Commit }} + # ldflags: + # - -X github.com/forbole/juno/v3/cmd.Version={{ .Version }} + # - -X github.com/forbole/juno/v3/cmd.Commit={{ .Commit }} archives: - id: release-archives @@ -68,7 +68,7 @@ release: name: bdjuno draft: false - prerelease: true + prerelease: auto mode: append header: | # Release Notes for {{.ProjectName}} v{{.Version}} diff --git a/go.mod b/go.mod index 034497f1a..02fc0c098 100644 --- a/go.mod +++ b/go.mod @@ -10,7 +10,7 @@ require ( github.com/go-co-op/gocron v1.17.0 github.com/gogo/protobuf v1.3.3 github.com/jmoiron/sqlx v1.3.5 - github.com/lib/pq v1.10.6 + github.com/lib/pq v1.10.7 github.com/pelletier/go-toml v1.9.5 github.com/prometheus/client_golang v1.13.0 github.com/proullon/ramsql v0.0.0-20181213202341-817cee58a244 diff --git a/go.sum b/go.sum index 98aeef59f..c72987546 100644 --- a/go.sum +++ b/go.sum @@ -794,8 +794,8 @@ github.com/lib/pq v1.8.0/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= github.com/lib/pq v1.9.0/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= github.com/lib/pq v1.10.2/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= github.com/lib/pq v1.10.4/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= -github.com/lib/pq v1.10.6 h1:jbk+ZieJ0D7EVGJYpL9QTz7/YW6UHbmdnZWYyK5cdBs= -github.com/lib/pq v1.10.6/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= +github.com/lib/pq v1.10.7 h1:p7ZhMD+KsSRozJr34udlUrhboJwWAgCg34+/ZZNvZZw= +github.com/lib/pq v1.10.7/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= github.com/libp2p/go-buffer-pool v0.0.2 h1:QNK2iAFa8gjAe1SPz6mHSMuCcjs+X1wlHzeOSqcmlfs= github.com/libp2p/go-buffer-pool v0.0.2/go.mod h1:MvaB6xw5vOrDl8rYZGLFdKAuk/hRoRZd1Vi32+RXyFM= github.com/lightstep/lightstep-tracer-common/golang/gogo v0.0.0-20190605223551-bc2310a04743/go.mod h1:qklhhLq1aX+mtWk9cPHPzaBjWImj5ULL6C7HFJtXQMM=