Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Choose Snap distribution channel based on tag and remove beta notices #367

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
# Needed to publish new packages to our S3-hosted APT repo
AWS_ACCESS_KEY_ID: ${{ secrets.OBJECT_STORAGE_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.OBJECT_STORAGE_SECRET_ACCESS_KEY }}
IS_PRERELEASE: ${{ contains(github.ref_name, '-') }}
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -69,7 +70,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.CLI_RELEASE }}
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
- name: Publish packages to APT repo
if: contains(github.ref_name, '-') == false
if: ${{ env.IS_PRERELEASE == 'false' }}
env:
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
GPG_PRIVATE_KEY_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
Expand Down
6 changes: 3 additions & 3 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ brews:
name: CLI Release Bot
email: noreply@stackit.de
homepage: "https://github.com/stackitcloud/stackit-cli"
description: "A command-line interface to manage STACKIT resources.\nThis CLI is in a beta state. More services and functionality will be supported soon."
description: "A command-line interface to manage STACKIT resources."
directory: Formula
license: "Apache-2.0"
# If set to auto, the release will not be uploaded to the homebrew tap repo
Expand All @@ -117,12 +117,12 @@ snapcrafts:
# centre graphical frontends
title: STACKIT CLI
summary: A command-line interface to manage STACKIT resources.
description: "A command-line interface to manage STACKIT resources.\nThis CLI is in a beta state. More services and functionality will be supported soon."
description: "A command-line interface to manage STACKIT resources."
license: Apache-2.0
confinement: classic
# Grade "devel" will only release to `edge` and `beta` channels
# Grade "stable" will also release to the `candidate` and `stable` channels
grade: devel
grade: '{{ if eq .Env.IS_PRERELEASE "true" }}devel{{ else }}stable{{ end }}'
# Whether to publish the Snap to the store
publish: true

Expand Down
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
[![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)

# STACKIT CLI (BETA)
# STACKIT CLI

Welcome to the [STACKIT](https://www.stackit.de/en) CLI, a command-line interface for the STACKIT services.

This CLI is in a BETA state. More services and functionality will be supported soon.
Your feedback is appreciated!

## Installation

Please refer to our [installation guide](./INSTALLATION.md) for instructions on how to install and get started using the STACKIT CLI.
Expand Down
4 changes: 2 additions & 2 deletions internal/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func NewRootCmd(version, date string, p *print.Printer) *cobra.Command {
cmd := &cobra.Command{
Use: "stackit",
Short: "Manage STACKIT resources using the command line",
Long: "Manage STACKIT resources using the command line.\nThis CLI is in a BETA state.\nMore services and functionality will be supported soon. Your feedback is appreciated!",
Long: "Manage STACKIT resources using the command line.",
Args: args.NoArgs,
SilenceErrors: true, // Error is beautified in a custom way before being printed
SilenceUsage: true,
Expand Down Expand Up @@ -84,7 +84,7 @@ func NewRootCmd(version, date string, p *print.Printer) *cobra.Command {
},
RunE: func(cmd *cobra.Command, args []string) error {
if flags.FlagToBoolValue(p, cmd, "version") {
p.Outputf("STACKIT CLI (beta)\n")
p.Outputf("STACKIT CLI\n")

parsedDate, err := time.Parse(time.RFC3339, date)
if err != nil {
Expand Down