forked from dimatha/adcs-issuer
-
Notifications
You must be signed in to change notification settings - Fork 10
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 #72 from djkormo/makefile-fix
changing golang to version 1.21.7
- Loading branch information
Showing
69 changed files
with
3,908 additions
and
4,439 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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
{ | ||
"postStartCommand": "bash .devcontainer/test-on-create.sh", | ||
"customizations": { | ||
"vscode": { | ||
"extensions": ["redhat.vscode-yaml", | ||
"ms-kubernetes-tools.vscode-kubernetes-tools", | ||
"golang.Go", | ||
"mhutchie.git-graph", | ||
"766b.go-outliner", "m4ns0ur.base64" | ||
] | ||
|
||
} | ||
} | ||
{ | ||
"postStartCommand": "bash .devcontainer/test-on-create.sh", | ||
"customizations": { | ||
"vscode": { | ||
"extensions": ["redhat.vscode-yaml", | ||
"ms-kubernetes-tools.vscode-kubernetes-tools", | ||
"golang.Go", | ||
"mhutchie.git-graph", | ||
"766b.go-outliner", "m4ns0ur.base64" | ||
] | ||
|
||
} | ||
} | ||
} |
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,37 @@ | ||
name: Publish ADCS Simulator Docker image on Release | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
|
||
- name: Get the version from tag | ||
id: get_version | ||
run: echo ::set-env name=VERSION::${GITHUB_REF#refs/tags/} | ||
env: | ||
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' | ||
COMMIT: 'variableContent' | ||
BUILD_TIME: 'variableContent' | ||
PROJECT: 'github.com/nokia/adcs-sim/adcs-sim' | ||
#COMMIT?=$(shell git rev-parse --short HEAD) | ||
#BUILD_TIME?=$(shell date -u '+%Y-%m-%d_%H:%M:%S') | ||
#PROJECT?=github.com/nokia/adcs-sim/adcs-sim | ||
|
||
|
||
- name: Publish to Registry | ||
uses: elgohr/Publish-Docker-Github-Action@master | ||
env: | ||
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' | ||
with: | ||
name: djkormo/adcs-sim | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
buildargs: VERSION,COMMIT,BUILD_TIME,PROJECT | ||
tags: "latest,${{ env.VERSION }}" | ||
dockerfile: ./test/Dockerfile | ||
|
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,76 +1,76 @@ | ||
name: adcs-simulator pipeline | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'test/adcs-sim/**.go' | ||
- 'test/**.go' | ||
- 'test/Dockerfile' | ||
|
||
|
||
jobs: | ||
|
||
buildDocker: | ||
runs-on: ubuntu-latest | ||
env: | ||
APP_NAME: adcs-simulator | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
name: Checkout | ||
with: | ||
|
||
ref: master | ||
|
||
- name: Docker meta | ||
id: meta | ||
uses: docker/metadata-action@v4 | ||
|
||
with: | ||
# list of Docker images to use as base name for tags | ||
images: | | ||
djkormo/adcs-sim | ||
# generate Docker tags based on the following events/attributes | ||
tags: | | ||
type=schedule | ||
type=ref,event=branch | ||
type=ref,event=pr | ||
type=semver,pattern={{version}} | ||
type=semver,pattern={{major}}.{{minor}} | ||
type=semver,pattern={{major}} | ||
type=sha | ||
- name: Login to DockerHub | ||
if: github.event_name != 'pull_request' | ||
|
||
uses: docker/login-action@v2 | ||
|
||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
|
||
- name: Build and push | ||
|
||
uses: docker/build-push-action@v3 | ||
|
||
with: | ||
context: ./test | ||
push: ${{ github.event_name != 'pull_request' }} | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
|
||
|
||
- name: Run Trivy vulnerability scanner | ||
uses: aquasecurity/trivy-action@master | ||
with: | ||
|
||
image-ref: djkormo/adcs-sim:master | ||
|
||
format: 'table' | ||
exit-code: '1' | ||
ignore-unfixed: true | ||
vuln-type: 'os,library' | ||
severity: 'CRITICAL,HIGH' | ||
skip-dirs: /usr/local/bin/ca | ||
|
||
|
||
name: adcs-simulator pipeline | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'test/adcs-sim/**.go' | ||
- 'test/**.go' | ||
- 'test/Dockerfile' | ||
|
||
|
||
jobs: | ||
|
||
buildDocker: | ||
runs-on: ubuntu-latest | ||
env: | ||
APP_NAME: adcs-simulator | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
name: Checkout | ||
with: | ||
|
||
ref: master | ||
|
||
- name: Docker meta | ||
id: meta | ||
uses: docker/metadata-action@v4 | ||
|
||
with: | ||
# list of Docker images to use as base name for tags | ||
images: | | ||
djkormo/adcs-sim | ||
# generate Docker tags based on the following events/attributes | ||
tags: | | ||
type=schedule | ||
type=ref,event=branch | ||
type=ref,event=pr | ||
type=semver,pattern={{version}} | ||
type=semver,pattern={{major}}.{{minor}} | ||
type=semver,pattern={{major}} | ||
type=sha | ||
- name: Login to DockerHub | ||
if: github.event_name != 'pull_request' | ||
|
||
uses: docker/login-action@v2 | ||
|
||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
|
||
- name: Build and push | ||
|
||
uses: docker/build-push-action@v3 | ||
|
||
with: | ||
context: ./test | ||
push: ${{ github.event_name != 'pull_request' }} | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
|
||
|
||
- name: Run Trivy vulnerability scanner | ||
uses: aquasecurity/trivy-action@master | ||
with: | ||
|
||
image-ref: djkormo/adcs-sim:master | ||
|
||
format: 'table' | ||
exit-code: '1' | ||
ignore-unfixed: true | ||
vuln-type: 'os,library' | ||
severity: 'CRITICAL,HIGH' | ||
skip-dirs: /usr/local/bin/ca | ||
|
||
|
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
Oops, something went wrong.