Skip to content

Commit

Permalink
Merge pull request #989 from smerle33/updatecli/goss/split
Browse files Browse the repository at this point in the history
chore(updatecli): update updatecli manifests to use the new goss-common.yaml file
  • Loading branch information
smerle33 authored Jan 15, 2024
2 parents c98b99a + 877d3ed commit 7f8830c
Show file tree
Hide file tree
Showing 20 changed files with 33 additions and 41 deletions.
5 changes: 5 additions & 0 deletions goss/goss-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ command:
chromium-browser:
exec: chromium-browser --version
exit-status: 0
container-structure-test:
exec: container-structure-test version
exit-status: 0
stdout:
- 1.16.0
datadog-agent:
exec: datadog-agent version
exit-status: 0
Expand Down
2 changes: 1 addition & 1 deletion provisioning/windows-provision.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ $downloads = [ordered]@{
'cleanupLocal' = 'true';
};
'jq' = @{
'url' = 'https://github.com/stedolan/jq/releases/download/jq-{0}/jq-win64.exe' -f $env:JQ_VERSION;
'url' = 'https://github.com/jqlang/jq/releases/download/jq-{0}/jq-win64.exe' -f $env:JQ_VERSION;
'local' = "$baseDir\jq.exe"
};
'az' = @{
Expand Down
3 changes: 1 addition & 2 deletions updatecli/updatecli.d/awscli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ targets:
kind: yaml
spec:
files:
- goss/goss-linux.yaml
- goss/goss-windows.yaml
- goss/goss-common.yaml
key: $.command.awscli.stdout[0]
scmid: default

Expand Down
3 changes: 1 addition & 2 deletions updatecli/updatecli.d/azure-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ targets:
kind: yaml
spec:
files:
- goss/goss-linux.yaml
- goss/goss-windows.yaml
- goss/goss-common.yaml
key: $.command.azurecli.stdout[0]
scmid: default

Expand Down
5 changes: 1 addition & 4 deletions updatecli/updatecli.d/container-structure-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,8 @@ targets:
kind: yaml
spec:
files:
- goss/goss-linux.yaml
- goss/goss-windows.yaml
- goss/goss-common.yaml
key: $.command.container-structure-test.stdout[0]
transformers:
- addprefix: "v"
scmid: default

actions:
Expand Down
3 changes: 1 addition & 2 deletions updatecli/updatecli.d/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ targets:
kind: yaml
spec:
files:
- goss/goss-linux.yaml
- goss/goss-windows.yaml
- goss/goss-common.yaml
key: $.command.docker_compose.stdout[0]
scmid: default

Expand Down
3 changes: 1 addition & 2 deletions updatecli/updatecli.d/git-lfs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ targets:
kind: yaml
spec:
files:
- goss/goss-linux.yaml
- goss/goss-windows.yaml
- goss/goss-common.yaml
key: $.command.git_lfs.stdout[0]
scmid: default

Expand Down
3 changes: 1 addition & 2 deletions updatecli/updatecli.d/github-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ targets:
kind: yaml
spec:
files:
- goss/goss-linux.yaml
- goss/goss-windows.yaml
- goss/goss-common.yaml
key: $.command.gh_cli.stdout[0]
scmid: default

Expand Down
3 changes: 1 addition & 2 deletions updatecli/updatecli.d/goss.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ targets:
kind: yaml
spec:
files:
- goss/goss-linux.yaml
- goss/goss-windows.yaml
- goss/goss-common.yaml
key: $.command.goss.stdout[0]
scmid: default

Expand Down
3 changes: 1 addition & 2 deletions updatecli/updatecli.d/hadolint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ targets:
kind: yaml
spec:
files:
- goss/goss-linux.yaml
- goss/goss-windows.yaml
- goss/goss-common.yaml
key: $.command.hadolint.stdout[0]
scmid: default

Expand Down
3 changes: 1 addition & 2 deletions updatecli/updatecli.d/jdk11.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ targets:
kind: yaml
spec:
files:
- goss/goss-linux.yaml
- goss/goss-windows.yaml
- goss/goss-common.yaml
key: $.command.default_java.stdout[0]
scmid: default

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,24 @@ sources:
kind: githubrelease
name: Get the latest jq release version
spec:
owner: "stedolan"
owner: "jqlang"
repository: "jq"
token: "{{ requiredEnv .github.token }}"
username: "{{ .github.username }}"
versionfilter:
kind: regex
## Latest stable x.y.z version
pattern: 'jq-(\d*)\.(\d*)$'
pattern: 'jq-(\d*)\.(\d*)\.(\d*)$'
transformers:
- trimprefix: "jq-"

conditions:
checkwindowsversion:
disablesourceinput: true
kind: shell
spec:
command: curl --connect-timeout 5 --verbose --silent --show-error --location --fail --head --output /dev/null "https://github.com/jqlang/jq/releases/download/jq-{{ source "lastReleaseVersion" }}/jq-win64.exe"

targets:
updateVersion:
name: "Update the jq version in the tools-versions.yml file"
Expand All @@ -43,8 +50,7 @@ targets:
kind: yaml
spec:
files:
- goss/goss-linux.yaml
- goss/goss-windows.yaml
- goss/goss-common.yaml
key: $.command.jq.stdout[0]
scmid: default

Expand Down
3 changes: 1 addition & 2 deletions updatecli/updatecli.d/jx-release-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ targets:
kind: yaml
spec:
files:
- goss/goss-linux.yaml
- goss/goss-windows.yaml
- goss/goss-common.yaml
key: $.command.jx-release-version.stdout[0]
scmid: default

Expand Down
3 changes: 1 addition & 2 deletions updatecli/updatecli.d/launchable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ targets:
kind: yaml
spec:
files:
- goss/goss-linux.yaml
- goss/goss-windows.yaml
- goss/goss-common.yaml
key: $.command.launchable.stdout[0]
scmid: default

Expand Down
3 changes: 1 addition & 2 deletions updatecli/updatecli.d/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ targets:
kind: yaml
spec:
files:
- goss/goss-linux.yaml
- goss/goss-windows.yaml
- goss/goss-common.yaml
key: $.command.nodejs.stdout[0]
scmid: default

Expand Down
3 changes: 1 addition & 2 deletions updatecli/updatecli.d/packer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ targets:
kind: yaml
spec:
files:
- goss/goss-linux.yaml
- goss/goss-windows.yaml
- goss/goss-common.yaml
key: $.command.packer.stdout[0]
scmid: default

Expand Down
3 changes: 1 addition & 2 deletions updatecli/updatecli.d/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ targets:
kind: yaml
spec:
files:
- goss/goss-linux.yaml
- goss/goss-windows.yaml
- goss/goss-common.yaml
key: $.command.terraform.stdout[0]
scmid: default

Expand Down
3 changes: 1 addition & 2 deletions updatecli/updatecli.d/trivy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ targets:
kind: yaml
spec:
files:
- goss/goss-linux.yaml
- goss/goss-windows.yaml
- goss/goss-common.yaml
key: $.command.trivy.stdout[0]
scmid: default

Expand Down
3 changes: 1 addition & 2 deletions updatecli/updatecli.d/updatecli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ targets:
kind: yaml
spec:
files:
- goss/goss-linux.yaml
- goss/goss-windows.yaml
- goss/goss-common.yaml
key: $.command.updatecli.stderr[0]
scmid: default

Expand Down
3 changes: 1 addition & 2 deletions updatecli/updatecli.d/yq.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ targets:
kind: yaml
spec:
files:
- goss/goss-linux.yaml
- goss/goss-windows.yaml
- goss/goss-common.yaml
key: $.command.yq.stdout[0]
scmid: default

Expand Down

0 comments on commit 7f8830c

Please sign in to comment.