diff --git a/.github/workflows/go-releaser.yml b/.github/workflows/go-releaser.yml new file mode 100644 index 0000000000..4d348619fd --- /dev/null +++ b/.github/workflows/go-releaser.yml @@ -0,0 +1,41 @@ +name: goreleaser + +on: + push: + branches: [master, main, force_test, release-*, staging, trying] + tags: ['*'] + pull_request: + branches: ['**'] + +jobs: + goreleaser: + runs-on: ubuntu-latest + steps: + - + name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - + name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.15 + - + name: Run GoReleaser Test + uses: goreleaser/goreleaser-action@v2 + with: + distribution: goreleaser + version: latest + args: release --snapshot --skip-publish --rm-dist -f build/.goreleaser.yml + - + name: GoReleaser Release + uses: goreleaser/goreleaser-action@v2 + #release only on tags + if: startsWith(github.ref, 'refs/tags/') + with: + distribution: goreleaser + version: latest + args: release --rm-dist -f build/.goreleaser.yml + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/build/.goreleaser.yml b/build/.goreleaser.yml index a736794c8e..c974096cfd 100644 --- a/build/.goreleaser.yml +++ b/build/.goreleaser.yml @@ -95,7 +95,7 @@ archives: format: binary builds: - prom-migrator - name_template: "{{ .Binary }}_0.0.2_beta_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}" + name_template: "{{ .Binary }}_0.0.2_beta_1_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}" replacements: darwin: Darwin linux: Linux @@ -156,7 +156,7 @@ dockers: - pkg - cmd image_templates: - - "timescale/prom-migrator:0.0.2-beta" + - "timescale/prom-migrator:0.0.2-beta.1" - "timescale/prom-migrator:latest" docker_manifests: diff --git a/deploy/static/deploy.yaml b/deploy/static/deploy.yaml index 512128874c..050075d87e 100644 --- a/deploy/static/deploy.yaml +++ b/deploy/static/deploy.yaml @@ -1,12 +1,13 @@ --- -# Source: promscale/templates/svc-connector.yaml +# Source: promscale/templates/svc-promscale.yaml apiVersion: v1 kind: Service metadata: name: promscale-connector + namespace: default labels: app: promscale - chart: promscale-0.5.0 + chart: promscale-0.5.1 release: promscale heritage: Helm annotations: @@ -20,14 +21,15 @@ spec: port: 9201 protocol: TCP --- -# Source: promscale/templates/deployment-connector.yaml +# Source: promscale/templates/deployment-promscale.yaml apiVersion: apps/v1 kind: Deployment metadata: name: promscale + namespace: default labels: app: promscale - chart: promscale-0.5.0 + chart: promscale-0.5.1 release: promscale heritage: Helm spec: diff --git a/helm-chart/Chart.yaml b/helm-chart/Chart.yaml index d8233bdecc..3101da737a 100644 --- a/helm-chart/Chart.yaml +++ b/helm-chart/Chart.yaml @@ -1,4 +1,4 @@ name: promscale -version: 0.5.0 +version: 0.5.1 apiVersion: v2 description: Promscale Connector deployment diff --git a/pkg/version/version.go b/pkg/version/version.go index 90fd44daf4..69b43286df 100644 --- a/pkg/version/version.go +++ b/pkg/version/version.go @@ -37,8 +37,8 @@ var ( // since an app version must uniquely determine the state of the schema. // It is customary to bump the version by incrementing the numeral after // the `dev` tag. The SQL migration script name must correspond to the /new/ version. - Promscale = "0.5.1-dev.0" - PromMigrator = "0.0.2-beta.dev.0" + Promscale = "0.5.1" + PromMigrator = "0.0.2-beta.1" CommitHash = "" EarliestUpgradeTestVersion = "0.1.0" EarliestUpgradeTestVersionMultinode = "0.1.4" //0.1.4 earliest version that supports tsdb 2.0