Skip to content

Commit 44d1d9c

Browse files
committed
Add Infisical CLI
1 parent 21da00d commit 44d1d9c

27 files changed

+256
-602
lines changed

Diff for: .devcontainer/devcontainer.json

+12-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
11
{
2+
"name": "devcontainer-features",
23
"image": "mcr.microsoft.com/devcontainers/javascript-node:1-20-bookworm",
4+
"features": {
5+
"ghcr.io/devcontainers/features/docker-in-docker:2": {
6+
"version": "latest"
7+
}
8+
},
39
"customizations": {
410
"vscode": {
11+
"extensions": [
12+
"editorconfig.editorconfig",
13+
"github.vscode-github-actions",
14+
"mads-hartmann.bash-ide-vscode"
15+
],
516
"settings": {
617
"json.schemas": [
718
{
@@ -11,15 +22,9 @@
1122
"url": "https://raw.githubusercontent.com/devcontainers/spec/main/schemas/devContainerFeature.schema.json"
1223
}
1324
]
14-
},
15-
"extensions": [
16-
"mads-hartmann.bash-ide-vscode"
17-
]
25+
}
1826
}
1927
},
20-
"features": {
21-
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
22-
},
2328
"remoteUser": "node",
2429
"updateContentCommand": "npm install -g @devcontainers/cli"
2530
}

Diff for: .editorconfig

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
[*]
7+
indent_style = space
8+
indent_size = 4
9+
end_of_line = lf
10+
charset = utf-8
11+
trim_trailing_whitespace = true
12+
insert_final_newline = true
13+
14+
[*.md]
15+
max_line_length = off
16+
trim_trailing_whitespace = false
17+
18+
[*.yaml]
19+
indent_size = 2

Diff for: .github/dependabot.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
version: 2
2+
3+
updates:
4+
- package-ecosystem: 'github-actions'
5+
directory: '/'
6+
schedule:
7+
interval: 'weekly'
8+
time: '08:00'
9+
timezone: 'Europe/Berlin'

Diff for: .github/workflows/release.yaml renamed to .github/workflows/generate.yaml

+18-13
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,50 @@
1-
name: "Release dev container features & Generate Documentation"
1+
name: Generate Documentation
2+
23
on:
4+
push:
5+
branches:
6+
- main
37
workflow_dispatch:
48

59
jobs:
6-
deploy:
10+
generate:
711
if: ${{ github.ref == 'refs/heads/main' }}
812
runs-on: ubuntu-latest
13+
914
permissions:
1015
contents: write
1116
pull-requests: write
12-
packages: write
17+
1318
steps:
14-
- uses: actions/checkout@v3
19+
- name: Checkout
20+
uses: actions/checkout@v3
1521

16-
- name: "Publish Features"
22+
- name: Generate documentation
1723
uses: devcontainers/action@v1
1824
with:
19-
publish-features: "true"
20-
base-path-to-features: "./src"
21-
generate-docs: "true"
22-
23-
env:
24-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
base-path-to-features: ./src
26+
generate-docs: 'true'
2527

26-
- name: Create PR for Documentation
27-
id: push_image_info
28+
- name: Create PR for documentation
2829
env:
2930
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3031
run: |
3132
set -e
3233
echo "Start."
34+
3335
# Configure git and Push updates
3436
git config --global user.email github-actions[bot]@users.noreply.github.com
3537
git config --global user.name github-actions[bot]
3638
git config pull.rebase false
39+
3740
branch=automated-documentation-update-$GITHUB_RUN_ID
3841
git checkout -b $branch
3942
message='Automated documentation update'
43+
4044
# Add / update and commit
4145
git add */**/README.md
4246
git commit -m 'Automated documentation update [skip ci]' || export NO_UPDATES=true
47+
4348
# Push
4449
if [ "$NO_UPDATES" != "true" ] ; then
4550
git push origin "$branch"

Diff for: .github/workflows/publish.yaml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Publish Features
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
jobs:
10+
publish:
11+
if: ${{ github.ref == 'refs/heads/main' }}
12+
runs-on: ubuntu-latest
13+
14+
permissions:
15+
packages: write
16+
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v3
20+
21+
- name: Publish features
22+
uses: devcontainers/action@v1
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
with:
26+
publish-features: 'true'
27+
base-path-to-features: ./src

Diff for: .github/workflows/test.yaml

+25-14
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
name: "CI - Test Features"
1+
name: Test Features
2+
23
on:
34
push:
45
branches:
@@ -10,49 +11,59 @@ jobs:
1011
test-autogenerated:
1112
runs-on: ubuntu-latest
1213
continue-on-error: true
14+
1315
strategy:
1416
matrix:
1517
features:
16-
- color
17-
- hello
18+
- infisical-cli
1819
baseImage:
20+
- alpine:latest
1921
- debian:latest
22+
- fedora:latest
2023
- ubuntu:latest
24+
- mcr.microsoft.com/devcontainers/base:alpine
25+
- mcr.microsoft.com/devcontainers/base:debian
2126
- mcr.microsoft.com/devcontainers/base:ubuntu
27+
2228
steps:
23-
- uses: actions/checkout@v3
29+
- name: Checkout
30+
uses: actions/checkout@v3
2431

25-
- name: "Install latest devcontainer CLI"
32+
- name: Install latest devcontainer CLI
2633
run: npm install -g @devcontainers/cli
2734

28-
- name: "Generating tests for '${{ matrix.features }}' against '${{ matrix.baseImage }}'"
35+
- name: Generating tests for '${{ matrix.features }}' against '${{ matrix.baseImage }}'
2936
run: devcontainer features test --skip-scenarios -f ${{ matrix.features }} -i ${{ matrix.baseImage }} .
3037

3138
test-scenarios:
3239
runs-on: ubuntu-latest
3340
continue-on-error: true
41+
3442
strategy:
3543
matrix:
3644
features:
37-
- color
38-
- hello
45+
- infisical-cli
46+
3947
steps:
40-
- uses: actions/checkout@v3
48+
- name: Checkout
49+
uses: actions/checkout@v3
4150

42-
- name: "Install latest devcontainer CLI"
51+
- name: Install latest devcontainer CLI
4352
run: npm install -g @devcontainers/cli
4453

45-
- name: "Generating tests for '${{ matrix.features }}' scenarios"
54+
- name: Generating tests for '${{ matrix.features }}' scenarios
4655
run: devcontainer features test -f ${{ matrix.features }} --skip-autogenerated --skip-duplicated .
4756

4857
test-global:
4958
runs-on: ubuntu-latest
5059
continue-on-error: true
60+
5161
steps:
52-
- uses: actions/checkout@v3
62+
- name: Checkout
63+
uses: actions/checkout@v3
5364

54-
- name: "Install latest devcontainer CLI"
65+
- name: Install latest devcontainer CLI
5566
run: npm install -g @devcontainers/cli
5667

57-
- name: "Testing global scenarios"
68+
- name: Testing global scenarios
5869
run: devcontainer features test --global-scenarios-only .

Diff for: .github/workflows/validate.yaml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Validate Features
2+
3+
on:
4+
pull_request:
5+
workflow_dispatch:
6+
7+
jobs:
8+
validate:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v3
14+
15+
- name: Validate devcontainer-feature.json files
16+
uses: devcontainers/action@v1
17+
with:
18+
validate-only: 'true'
19+
base-path-to-features: ./src

Diff for: .github/workflows/validate.yml

-16
This file was deleted.

0 commit comments

Comments
 (0)