Skip to content

Commit

Permalink
Switch to docker image instead of Dockerfile (#5)
Browse files Browse the repository at this point in the history
* refactor(github-actions): change from Dockerfile to docker image
  • Loading branch information
aidmax authored Dec 16, 2020
1 parent ad55042 commit 250ed28
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 30 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Build an image
id: build
- name: Pull the image
run: |
IMAGE=test/structurizr-cli-action:${GITHUB_SHA}
docker build -t ${IMAGE} .
echo "::set-output name=image::$IMAGE"
- name: CVE scan image
uses: docker://docker.io/aquasec/trivy:latest
with:
args: --cache-dir /var/lib/trivy --no-progress --exit-code 1 --severity MEDIUM,HIGH,CRITICAL ${{ steps.build.outputs.image }}
docker pull ghcr.io/aidmax/structurizr-cli-docker:latest
- name: Run structurizr-cli action
uses: ./
Expand Down
19 changes: 0 additions & 19 deletions Dockerfile

This file was deleted.

4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ jobs:
passphrase: # The passphrase to use (optional; only required if client-side encryption enabled on the workspace)
```
## Details
This action is based upon the Dockerfile created and maintained here
<https://github.com/aidmax/structurizr-cli-docker>
## License
The Dockerfile and associated scripts and documentation in this project are released under the [MIT](license).
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ inputs:
required: false
runs:
using: 'docker'
image: 'Dockerfile'
image: 'docker://ghcr.io/aidmax/structurizr-cli-docker:latest'
args:
- 'push'
- '-id'
Expand Down

0 comments on commit 250ed28

Please sign in to comment.