File tree 2 files changed +23
-3
lines changed
2 files changed +23
-3
lines changed Original file line number Diff line number Diff line change 13
13
run : ./build-rootless.sh $(echo $GITHUB_REPOSITORY |cut -d '/' -f1)
14
14
- name : Build standard image
15
15
run : ./build.sh $(echo $GITHUB_REPOSITORY |cut -d '/' -f1)
16
+ - name : Trivy scan
17
+ uses : aquasecurity/trivy-action@master
18
+ with :
19
+ image-ref : puppet-dev-tools:latest
20
+ exit-code : 1
21
+ ignore-unfixed : true
22
+ severity : ' CRITICAL,HIGH,MEDIUM'
23
+ vuln-type : os
16
24
- name : Run tests
17
25
run : cd tests; ./run_tests.sh
18
26
- name : Tag Docker images
Original file line number Diff line number Diff line change 13
13
jobs :
14
14
publish-4x-image :
15
15
runs-on : ubuntu-latest
16
+ env :
17
+ IMAGE_BASE : " ${{ secrets.DOCKERHUB_PUSH_USERNAME }}/puppet-dev-tools"
16
18
steps :
17
19
- name : Login to Docker Hub
18
20
run : echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_LOGIN_USERNAME }} --password-stdin
19
- - name : Publish standard image to 4.x
21
+ - name : Pull image
20
22
env :
21
- IMAGE_BASE : " ${{ secrets.DOCKERHUB_PUSH_USERNAME }}/puppet-dev-tools"
22
23
IMAGE_TAG : ${{ github.event.inputs.image_tag }}
23
24
run : |
24
25
docker pull ${IMAGE_BASE}:${IMAGE_TAG}
26
+ - name : Trivy scan
27
+ uses : aquasecurity/trivy-action@master
28
+ with :
29
+ image-ref : ${{ env.IMAGE_BASE }}:${{ github.event.inputs.image_tag }}
30
+ exit-code : 1
31
+ ignore-unfixed : true
32
+ severity : ' CRITICAL,HIGH,MEDIUM'
33
+ vuln-type : os
34
+ - name : Publish standard image to 4.x
35
+ env :
36
+ IMAGE_TAG : ${{ github.event.inputs.image_tag }}
37
+ run : |
25
38
docker tag ${IMAGE_BASE}:${IMAGE_TAG} ${IMAGE_BASE}:4.x
26
39
docker push ${IMAGE_BASE}:4.x
27
40
- name : Publish rootless image to 4.x-rootless
28
41
env :
29
- IMAGE_BASE : " ${{ secrets.DOCKERHUB_PUSH_USERNAME }}/puppet-dev-tools"
30
42
IMAGE_TAG : ${{ github.event.inputs.image_tag_rootless }}
31
43
run : |
32
44
docker pull ${IMAGE_BASE}:${IMAGE_TAG}
You can’t perform that action at this time.
0 commit comments