fix: do not use SNAPSHOT on push tags (#6)

chore: disable some platforms for now

## Description

<!-- **Please link some issue here describing what you are trying to achieve.**

In case there is no issue present for your PR, please consider creating one.
At least please give us some description what you are trying to achieve and why your change is needed. -->

relates to #1234

## Checklist

- [ ] Issue was linked above
- [ ] Code format was applied: `make fmt`
- [ ] Examples were added / adjusted (see `examples/` directory)
- [x] Docs are up-to-date: `make generate-docs` (will be checked by CI)
- [ ] Unit tests got implemented or updated
- [ ] Acceptance tests got implemented or updated (see e.g. [here](f5f99d1709/stackit/internal/services/dns/dns_acc_test.go))
- [x] Unit tests are passing: `make test` (will be checked by CI)
- [x] No linter issues: `make lint` (will be checked by CI)

Reviewed-on: #6
Co-authored-by: Marcel S. Henselin <marcel.henselin@stackit.cloud>
Co-committed-by: Marcel S. Henselin <marcel.henselin@stackit.cloud>
This commit is contained in:
Marcel_Henselin 2026-01-29 15:04:42 +00:00 committed by Marcel_Henselin
parent 3149537a4a
commit 5e303ba8dd
Signed by: tf-provider.git.onstackit.cloud
GPG key ID: 6D7E8A1ED8955A9C
3 changed files with 28 additions and 12 deletions

View file

@ -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 }}

View file

@ -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' ]

View file

@ -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