Skip to content
This repository has been archived by the owner on Dec 3, 2024. It is now read-only.

Commit

Permalink
feat(ci): sync dockerhub overview with github readme (#11)
Browse files Browse the repository at this point in the history
* feat(ci): sync dockerhub overview with github reade

* fix: missing checkout in tmp

* fix: try another action

* fix: use yet another action

* docs: cleanup README to upload to dockerhub
  • Loading branch information
cyclimse authored Nov 6, 2023
1 parent 8474f2c commit 7faceaa
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 13 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,9 @@ on:
permissions:
contents: read

defaults:
run:
shell: bash

jobs:
quality:
lint:
name: Run linters
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -24,7 +21,7 @@ jobs:
with:
go-version: '^1.21'

- name: golangci-lint
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.55
Expand All @@ -39,5 +36,5 @@ jobs:
with:
go-version: '^1.21'

- name: go test
- name: Run unit tests
run: go test -v ./...
11 changes: 11 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
tags:
- 'v*'

permissions:
contents: read

jobs:
push_to_registry:
name: Push Docker image to Docker Hub
Expand Down Expand Up @@ -36,3 +39,11 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

- name: Update Docker Hub description
uses: peter-evans/dockerhub-description@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
repository: cyclimse/scwtui
short-description: ${{ github.event.repository.description }}
20 changes: 14 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# scwtui

> **Note**
> **Warning**
> Not an official Scaleway project, use at your own risk.
`scwtui` is a terminal user interface for Scaleway powered by [bubbletea](https://github.com/charmbracelet/bubbletea). Inspired by [k9s](https://k9scli.io/).
`scwtui` is a terminal user interface for Scaleway powered by [bubbletea](https://github.com/charmbracelet/bubbletea).

It allows you to view all the resources in your Scaleway account and perform basic operations on them.

Expand All @@ -12,9 +12,11 @@ It allows you to view all the resources in your Scaleway account and perform bas
The easiest way to run `scwtui` is to use Docker.

```bash
docker run -it --rm -v "$HOME/.config/scw:/root/.config/scw" cyclimse/scwtui:0.1.0
docker run -it --rm -v "$HOME/.config/scw:/root/.config/scw" cyclimse/scwtui:0.1.1
```

You can also provide your Scaleway credentials using environment variables. See the [scaleway-cli](https://github.com/scaleway/scaleway-cli/blob/master/docs/commands/config.md) documentation for more information.

## Keybindings

| Keybinding | Description |
Expand Down Expand Up @@ -48,9 +50,7 @@ You can delete a resource by pressing `x` when it is selected. This will prompt
You can view the logs for a resource by pressing `l` when it is selected. This will open a new window with the logs for the resource.

In practice, this feature relies on the Cockpit Loki API. It will generate tokens for each project to allow you to view the logs for the project.

This requires your API key to have the `ObservabilityFullAccess` permission set to work.
This feature relies on the Cockpit Loki API. It will generate a token for each project to allow you to view the logs of the resources in the project. As such, you will need to provide the `ObservabilityFullAccess` permission set to your API token.

## Supported Resources

Expand All @@ -60,3 +60,11 @@ This requires your API key to have the `ObservabilityFullAccess` permission set
| Serverless Container |||||
| Registry Namespace |||||
| RDB Instance |||||

## Troubleshooting

### IAM Permissions

If you're using an IAM scoped token, you will need to provide the `ProjectReadyOnly` permission set to your API token. This is needed to retrieve the projects in your account, so that all resources can be listed.

In addition, you will need read permissions for all the products you want to use with `scwtui`. For instance, if you want to use this tool with all products, you can use the `AllProductsReadOnly` permission set.

0 comments on commit 7faceaa

Please sign in to comment.