-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #75 from Cray-HPE/CASMHMS-5424
Convert hms-smd to github actions
- Loading branch information
Showing
44 changed files
with
1,051 additions
and
2,034 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<!-- This file is templated with https://pkg.go.dev/html/template --> | ||
👋 Hey! Here is the image we built for you ([Artifactory Link](https://artifactory.algol60.net/ui/repos/tree/General/csm-docker%2F{{ .stableString }}%2F{{ .imageName }}%2F{{ .imageTag }})): | ||
|
||
```bash | ||
{{ .image }} | ||
``` | ||
|
||
Use podman or docker to pull it down and inspect locally: | ||
|
||
```bash | ||
podman pull {{ .image }} | ||
``` | ||
|
||
Or, use this script to pull the image from the build server to a dev system: | ||
|
||
<details> | ||
<summary>Dev System Pull Script</summary> | ||
<br /> | ||
|
||
> **Note** the following script only applies to systems running CSM 1.2 or later. | ||
```bash | ||
#!/usr/bin/env bash | ||
export REMOTE_IMAGE={{ .image }} | ||
export LOCAL_IMAGE={{ .imageName }}:{{ .imageTag }} | ||
|
||
skopeo copy --dest-tls-verify=false docker://${REMOTE_IMAGE} docker://registry.local/csm-docker/stable/${LOCAL_IMAGE} | ||
``` | ||
</details> | ||
|
||
<details> | ||
<summary>Snyk Report</summary> | ||
<br /> | ||
|
||
_Coming soon_ | ||
|
||
</details> | ||
|
||
<details> | ||
<summary>Software Bill of Materials</summary> | ||
<br /> | ||
|
||
```bash | ||
cosign download sbom {{ .image }} > container_image.spdx | ||
``` | ||
|
||
If you don't have cosign, then you can get it [here](https://github.com/sigstore/cosign#installation). | ||
</details> | ||
|
||
*Note*: this SHA is the merge of {{ .PRHeadSha }} and the PR base branch. Good luck and make rocket go now! 🌮 🚀 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Build and Publish CT Docker Images | ||
on: | ||
- push # Perform a build of the contents from the branch | ||
- pull_request # Perform a build after merging with the target branch | ||
- workflow_dispatch | ||
jobs: | ||
build_and_release: | ||
uses: Cray-HPE/hms-build-image-workflows/.github/workflows/build_and_release_image.yaml@v1 | ||
with: | ||
image-name: cray-smd-test | ||
docker-build-file: test/ct/Dockerfile #the test/ct/Dockerfile is what we want! | ||
docker-build-context: test/ct | ||
enable-pr-comment: true | ||
secrets: | ||
artifactory-username: ${{ secrets.ARTIFACTORY_ALGOL60_USERNAME }} | ||
artifactory-token: ${{ secrets.ARTIFACTORY_ALGOL60_TOKEN }} | ||
snyk-token: ${{ secrets.SNYK_TOKEN }} | ||
cosign-gcp-project-id: ${{ secrets.COSIGN_GCP_PROJECT_ID }} | ||
cosign-gcp-sa-key: ${{ secrets.COSIGN_GCP_SA_KEY }} | ||
cosign-key: ${{ secrets.COSIGN_KEY }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: Build and Publish Service Docker Images | ||
on: | ||
- push # Perform a build of the contents from the branch | ||
- pull_request # Perform a build after merging with the target branch | ||
- workflow_dispatch | ||
jobs: | ||
build_and_release: | ||
uses: Cray-HPE/hms-build-image-workflows/.github/workflows/build_and_release_image.yaml@v1 | ||
with: | ||
image-name: cray-smd | ||
enable-pr-comment: true | ||
secrets: | ||
artifactory-username: ${{ secrets.ARTIFACTORY_ALGOL60_USERNAME }} | ||
artifactory-token: ${{ secrets.ARTIFACTORY_ALGOL60_TOKEN }} | ||
snyk-token: ${{ secrets.SNYK_TOKEN }} | ||
cosign-gcp-project-id: ${{ secrets.COSIGN_GCP_PROJECT_ID }} | ||
cosign-gcp-sa-key: ${{ secrets.COSIGN_GCP_SA_KEY }} | ||
cosign-key: ${{ secrets.COSIGN_KEY }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
name: Run CT Tests | ||
on: [push, pull_request, workflow_dispatch] | ||
jobs: | ||
run_ct_test: | ||
uses: Cray-HPE/hms-build-image-workflows/.github/workflows/run_ct_test.yaml@v1 | ||
with: | ||
runs-on: ubuntu-latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
name: Run Unit Tests | ||
on: [push, pull_request, workflow_dispatch] | ||
jobs: | ||
run_unit_test: | ||
uses: Cray-HPE/hms-build-image-workflows/.github/workflows/run_unit_test.yaml@v1 | ||
with: | ||
runs-on: ubuntu-latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.50.0 | ||
1.51.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[ | ||
{ | ||
"BrokerAddress": "kafka:9092", | ||
"TopicsToPublish": { | ||
"cray-telemetry-temperature": null, | ||
"cray-telemetry-voltage": null, | ||
"cray-telemetry-power": null, | ||
"cray-telemetry-energy": null, | ||
"cray-telemetry-fan": null, | ||
"cray-telemetry-pressure": null, | ||
"cray-fabric-telemetry": null, | ||
"cray-fabric-perf-telemetry": null, | ||
"cray-fabric-crit-telemetry": null, | ||
"cray-dmtf-resource-event": null | ||
} | ||
} | ||
] |
Oops, something went wrong.