Skip to content

Commit 36daef5

Browse files
authored
Merge branch 'main' into kms-beta
2 parents eeed803 + eb2399b commit 36daef5

File tree

13 files changed

+64
-26
lines changed

13 files changed

+64
-26
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
uses: actions/checkout@v5
2121

2222
- name: Install go
23-
uses: actions/setup-go@v5
23+
uses: actions/setup-go@v6
2424
with:
2525
go-version-file: "go.mod"
2626
cache: true

.github/workflows/release.yaml

Lines changed: 43 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,26 +21,26 @@ jobs:
2121
runs-on: macOS-latest
2222
env:
2323
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }}
24-
# Needed to publish new packages to our S3-hosted APT repo
25-
AWS_ACCESS_KEY_ID: ${{ secrets.OBJECT_STORAGE_ACCESS_KEY_ID }}
26-
AWS_SECRET_ACCESS_KEY: ${{ secrets.OBJECT_STORAGE_SECRET_ACCESS_KEY }}
2724
steps:
2825
- name: Checkout
2926
uses: actions/checkout@v5
3027
with:
3128
# Allow goreleaser to access older tag information.
3229
fetch-depth: 0
30+
3331
- name: Install go
34-
uses: actions/setup-go@v5
32+
uses: actions/setup-go@v6
3533
with:
3634
go-version-file: "go.mod"
3735
cache: true
36+
3837
- name: Import GPG key
3938
uses: crazy-max/ghaction-import-gpg@v6
4039
id: import_gpg
4140
with:
4241
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
4342
passphrase: ${{ secrets.GPG_PASSPHRASE }}
43+
4444
- name: Set up keychain
4545
run: |
4646
echo -n $SIGNING_CERTIFICATE_BASE64 | base64 -d -o ./ApplicationID.p12
@@ -61,17 +61,54 @@ jobs:
6161
APPLE_KEY_ID: ${{ secrets.APPLE_KEY_ID }}
6262
SIGNING_CERTIFICATE_BASE64: ${{ secrets.APPLICATION_ID_CERT }}
6363
AUTHKEY_BASE64: ${{ secrets.APPLE_API_KEY }}
64-
- name: Install Aptly
65-
run: brew install aptly
6664
- name: Install Snapcraft
6765
uses: samuelmeuli/action-snapcraft@v3
66+
6867
- name: Run GoReleaser
6968
uses: goreleaser/goreleaser-action@v6
7069
with:
7170
args: release --clean
7271
env:
7372
GITHUB_TOKEN: ${{ secrets.CLI_RELEASE }}
7473
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
74+
75+
# artifacts need to be passed to the "publish-apt" job somehow
76+
- name: Upload artifacts to workflow
77+
uses: actions/upload-artifact@v4
78+
with:
79+
name: goreleaser-dist-temp
80+
path: dist
81+
retention-days: 1
82+
83+
publish-apt:
84+
name: Publish APT
85+
runs-on: macOS-latest
86+
needs: [goreleaser]
87+
env:
88+
# Needed to publish new packages to our S3-hosted APT repo
89+
AWS_ACCESS_KEY_ID: ${{ secrets.OBJECT_STORAGE_ACCESS_KEY_ID }}
90+
AWS_SECRET_ACCESS_KEY: ${{ secrets.OBJECT_STORAGE_SECRET_ACCESS_KEY }}
91+
steps:
92+
- name: Checkout
93+
uses: actions/checkout@v5
94+
95+
# use the artifacts from the "goreleaser" job
96+
- name: Download artifacts from workflow
97+
uses: actions/download-artifact@v5
98+
with:
99+
name: goreleaser-dist-temp
100+
path: dist
101+
102+
- name: Install Aptly
103+
run: brew install aptly
104+
105+
- name: Import GPG key
106+
uses: crazy-max/ghaction-import-gpg@v6
107+
id: import_gpg
108+
with:
109+
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
110+
passphrase: ${{ secrets.GPG_PASSPHRASE }}
111+
75112
- name: Publish packages to APT repo
76113
if: contains(github.ref_name, '-') == false
77114
env:

.github/workflows/stale.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
timeout-minutes: 10
2424
steps:
2525
- name: "Mark old PRs as stale"
26-
uses: actions/stale@v9
26+
uses: actions/stale@v10
2727
with:
2828
repo-token: ${{ secrets.GITHUB_TOKEN }}
2929
stale-pr-message: "This PR was marked as stale after ${{ env.DAYS_BEFORE_PR_STALE }} days of inactivity and will be closed after another ${{ env.DAYS_BEFORE_PR_CLOSE }} days of further inactivity. If this PR should be kept open, just add a comment, remove the stale label or push new commits to it."

.goreleaser.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ homebrew_casks:
124124
name: CLI Release Bot
125125
email: noreply@stackit.de
126126
homepage: "https://github.com/stackitcloud/stackit-cli"
127-
description: "A command-line interface to manage STACKIT resources.\nThis CLI is in a beta state. More services and functionality will be supported soon."
127+
description: "A command-line interface to manage STACKIT resources."
128128
license: "Apache-2.0"
129129
# If set to auto, the release will not be uploaded to the homebrew tap repo
130130
# if the tag has a prerelease indicator (e.g. v0.0.1-alpha1)
@@ -144,12 +144,12 @@ snapcrafts:
144144
# centre graphical frontends
145145
title: STACKIT CLI
146146
summary: A command-line interface to manage STACKIT resources.
147-
description: "A command-line interface to manage STACKIT resources.\nThis CLI is in a beta state. More services and functionality will be supported soon."
147+
description: "A command-line interface to manage STACKIT resources."
148148
license: Apache-2.0
149149
confinement: classic
150150
# Grade "devel" will only release to `edge` and `beta` channels
151151
# Grade "stable" will also release to the `candidate` and `stable` channels
152-
grade: devel
152+
grade: stable
153153
# Whether to publish the Snap to the store
154154
publish: true
155155

AUTHENTICATION.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,12 @@ The expected format of the service account key is a **json** with the following
9292
> - setting the environment variable `STACKIT_PRIVATE_KEY_PATH`
9393
> - setting `STACKIT_PRIVATE_KEY_PATH` in the credentials file (see above)
9494
95-
4. The CLI will search for the keys and, if valid, will use them to get access and refresh tokens which will be used to authenticate all the requests.
95+
4. Alternative, if you want to pass the keys directly without storing a file on disk:
96+
97+
- setting the environment variable `STACKIT_SERVICE_ACCOUNT_KEY` with the content of the service account key
98+
- optional: setting the environment variable `STACKIT_PRIVATE_KEY` with the content of the private key
99+
100+
5. The CLI will search for the keys and, if valid, will use them to get access and refresh tokens which will be used to authenticate all the requests.
96101

97102
### Token flow
98103

INSTALLATION.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ $ stackit config profile import -c @default.json --name myProfile
6767
The STACKIT CLI is available as a [Snap](https://snapcraft.io/stackit), and can be installed via:
6868

6969
```shell
70-
sudo snap install stackit --beta --classic
70+
sudo snap install stackit --classic
7171
```
7272

7373
or via the [Snap Store](https://snapcraft.io/snap-store) for desktop.

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<br>
66
</div>
77

8-
# STACKIT CLI (BETA)
8+
# STACKIT CLI
99

1010
[![Go Report Card](https://goreportcard.com/badge/github.com/stackitcloud/stackit-cli)](https://goreportcard.com/report/github.com/stackitcloud/stackit-cli) ![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/stackitcloud/stackit-cli) [![GitHub License](https://img.shields.io/github/license/stackitcloud/stackit-cli)](https://www.apache.org/licenses/LICENSE-2.0)
1111

@@ -19,7 +19,6 @@ The STACKIT CLI allows you to manage your STACKIT services and resources as well
1919
- DNS zones and record-sets
2020
- Databases such as PostgreSQL Flex, MongoDB Flex and SQLServer Flex
2121

22-
This CLI is in a BETA state. More services and functionality will be supported soon.
2322
Your feedback is appreciated!
2423
Feel free to open [GitHub issues](https://github.com/stackitcloud/stackit-cli) to provide feature requests and bug reports.
2524

docs/stackit.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ Manage STACKIT resources using the command line
55
### Synopsis
66

77
Manage STACKIT resources using the command line.
8-
This CLI is in a BETA state.
9-
More services and functionality will be supported soon. Your feedback is appreciated!
8+
Your feedback is appreciated!
109

1110
```
1211
stackit [flags]

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ require (
243243
github.com/stackitcloud/stackit-sdk-go/services/logme v0.25.1
244244
github.com/stackitcloud/stackit-sdk-go/services/mariadb v0.25.1
245245
github.com/stackitcloud/stackit-sdk-go/services/objectstorage v1.3.1
246-
github.com/stackitcloud/stackit-sdk-go/services/observability v0.12.0
246+
github.com/stackitcloud/stackit-sdk-go/services/observability v0.14.0
247247
github.com/stackitcloud/stackit-sdk-go/services/rabbitmq v0.25.1
248248
github.com/stackitcloud/stackit-sdk-go/services/redis v0.25.1
249249
github.com/subosito/gotenv v1.6.0 // indirect

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -587,8 +587,8 @@ github.com/stackitcloud/stackit-sdk-go/services/mongodbflex v1.5.2 h1:BQ+qAkVS/a
587587
github.com/stackitcloud/stackit-sdk-go/services/mongodbflex v1.5.2/go.mod h1:oc8Mpwl7O6EZwG0YxfhOzNCJwNQBWK5rFh764OtxoMY=
588588
github.com/stackitcloud/stackit-sdk-go/services/objectstorage v1.3.1 h1:4jsFLbDVEosYTgQz6lPds1E9KDOiHwjuhWqcG+lo5B4=
589589
github.com/stackitcloud/stackit-sdk-go/services/objectstorage v1.3.1/go.mod h1:j1SHAS5lN8F9b/iPUOfjAl9QAA9tOT7NKOiDEzcM2zc=
590-
github.com/stackitcloud/stackit-sdk-go/services/observability v0.12.0 h1:myi6k4LQJJGaMGwzBKp5hlatrCNNf8FR+/gqnzxnGb8=
591-
github.com/stackitcloud/stackit-sdk-go/services/observability v0.12.0/go.mod h1:tJEOi6L0le4yQZPGwalup/PZ13gqs1aCQDqlUs2cYW0=
590+
github.com/stackitcloud/stackit-sdk-go/services/observability v0.14.0 h1:oewwaYjABWbNqDkmSwIXmjDBK4a46+tnznyZSXh3Xk0=
591+
github.com/stackitcloud/stackit-sdk-go/services/observability v0.14.0/go.mod h1:tJEOi6L0le4yQZPGwalup/PZ13gqs1aCQDqlUs2cYW0=
592592
github.com/stackitcloud/stackit-sdk-go/services/opensearch v0.24.1 h1:50n87uZn0EvSP9hJGLqd3Wm2hfqbyh7BMGGCk7axgqA=
593593
github.com/stackitcloud/stackit-sdk-go/services/opensearch v0.24.1/go.mod h1:jfguuSPa56Z5Bzs/Xg/CI37XzPo5Zn5lzC5LhfuT8Qc=
594594
github.com/stackitcloud/stackit-sdk-go/services/postgresflex v1.2.1 h1:K8vXele3U6b5urcSIpq21EkVblWfPDY3eMPSuQ48TkI=

0 commit comments

Comments
 (0)