Skip to content

feat: new CLI to mange local secrets#190

Merged
joe0BAB merged 2 commits into
mainfrom
feat/mysecret-init
Aug 5, 2025
Merged

feat: new CLI to mange local secrets#190
joe0BAB merged 2 commits into
mainfrom
feat/mysecret-init

Conversation

@joe0BAB
Copy link
Copy Markdown
Collaborator

@joe0BAB joe0BAB commented Aug 5, 2025

Boilerplate code to setup a new binary that also is a docker CLI plugin, can be used standalone and is build on CI.

@joe0BAB joe0BAB self-assigned this Aug 5, 2025
uses: actions/checkout@v4

- name: Hub login
uses: docker/login-action@v3

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'Build' step
Uses Step
uses 'docker/login-action' with ref 'v3', not a pinned commit hash

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'Build' step
Uses Step: buildx
uses 'docker/setup-buildx-action' with ref 'v3', not a pinned commit hash
uses: actions/checkout@v4

- name: Hub login
uses: docker/login-action@v3

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'Build' step
Uses Step
uses 'docker/login-action' with ref 'v3', not a pinned commit hash

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'Build' step
Uses Step: buildx
uses 'docker/setup-buildx-action' with ref 'v3', not a pinned commit hash
uses: actions/checkout@v4

- name: Hub login
uses: docker/login-action@v3

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'Lint' step
Uses Step
uses 'docker/login-action' with ref 'v3', not a pinned commit hash

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'Lint' step
Uses Step: buildx
uses 'docker/setup-buildx-action' with ref 'v3', not a pinned commit hash
@joe0BAB joe0BAB force-pushed the feat/mysecret-init branch from 9713cad to bb503ad Compare August 5, 2025 09:44
@joe0BAB joe0BAB added this to the docker-mysecret milestone Aug 5, 2025
@joe0BAB joe0BAB linked an issue Aug 5, 2025 that may be closed by this pull request
@joe0BAB joe0BAB requested review from Benehiko and wmluke August 5, 2025 09:49
@joe0BAB joe0BAB marked this pull request as ready for review August 5, 2025 09:49
Comment thread cmd/mysecret/main.go Outdated
Comment on lines +36 to +44
func newSigContext() (context.Context, func()) {
ctx, cancel := context.WithCancel(context.Background())
s := make(chan os.Signal, 1)
signal.Notify(s, syscall.SIGTERM, syscall.SIGINT)
go func() {
<-s
cancel()
}()
return ctx, cancel
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call out! Let's to similar as in CLI then 😄

Comment thread .github/workflows/ci.yml
Comment thread .github/workflows/build.yml
@joe0BAB joe0BAB force-pushed the feat/mysecret-init branch from bb503ad to fa0ffe6 Compare August 5, 2025 11:49
@joe0BAB joe0BAB requested a review from Benehiko August 5, 2025 11:51
@joe0BAB joe0BAB merged commit 6308082 into main Aug 5, 2025
23 checks passed
@joe0BAB joe0BAB deleted the feat/mysecret-init branch August 5, 2025 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Setup: new binary, docker cli plugin boilerplate, release pipeline, ...

3 participants