From 69a81b78e89c9c7c60b59b56994712ce6c42123c Mon Sep 17 00:00:00 2001 From: "Marcel S. Henselin" Date: Thu, 29 Jan 2026 16:03:58 +0100 Subject: [PATCH] fix: do not use SNAPSHOT on push tags chore: disable some platforms for now --- .github/workflows/publish.yaml | 18 +++++++++++++++++- .goreleaser.yaml | 18 +++++++++--------- sample/sqlserver/sqlserver.tf | 4 ++-- 3 files changed, 28 insertions(+), 12 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 6752ce76..9a927130 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -1,7 +1,12 @@ name: Publish +run-name: Publish by @${{ github.actor }} + on: pull_request: + branches: + - alpha + - main workflow_dispatch: push: tags: @@ -45,7 +50,7 @@ jobs: - name: Checkout uses: actions/checkout@v6 - - name: Install Go ${{ env.GO_VERSION }} + - name: 'Install Go ${{ env.GO_VERSION }}' uses: actions/setup-go@v6 with: go-version: ${{ env.GO_VERSION }} @@ -81,7 +86,18 @@ jobs: echo "${{ secrets.PRIVATE_KEY_PEM }}" > private.key.pem gpg --import private.key.pem + - name: Run GoReleaser with SNAPSHOT + if: github.event_name == 'workflow_dispatch' + id: goreleaser + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GPG_FINGERPRINT: ${{ secrets.GPG_FINGERPRINT }} + uses: goreleaser/goreleaser-action@v6 + with: + args: release --skip publish --clean --snapshot + - name: Run GoReleaser + if: github.event_name != 'workflow_dispatch' id: goreleaser env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.goreleaser.yaml b/.goreleaser.yaml index e0aafe37..3e9105ca 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -19,20 +19,20 @@ builds: ldflags: - '-s -w -X main.version={{.Version}} -X main.commit={{.Commit}}' goos: - - freebsd - - windows +# - freebsd +# - windows - linux - darwin goarch: - amd64 - - '386' - - arm +# - '386' +# - arm - arm64 - ignore: - - goos: darwin - goarch: '386' - - goos: windows - goarch: arm +# ignore: +# - goos: darwin +# goarch: '386' +# - goos: windows +# goarch: arm binary: '{{ .ProjectName }}_v{{ .Version }}' archives: - formats: [ 'zip' ] diff --git a/sample/sqlserver/sqlserver.tf b/sample/sqlserver/sqlserver.tf index 923bb423..acd17b21 100644 --- a/sample/sqlserver/sqlserver.tf +++ b/sample/sqlserver/sqlserver.tf @@ -18,9 +18,9 @@ # value = stackit_kms_key.key.key_id # } -resource "stackitprivatepreview_sqlserverflexalpha_instance" "sqlsrv" { +resource "stackitprivatepreview_sqlserverflexalpha_instance" "msh-sna-001" { project_id = var.project_id - name = "msh-example-instance-002" + name = "msh-sna-001" backup_schedule = "0 3 * * *" retention_days = 31 flavor_id = data.stackitprivatepreview_sqlserverflexalpha_flavor.sqlserver_flavor.flavor_id -- 2.49.1