@@ -66,20 +66,20 @@ jobs:
66
66
67
67
- name : Build image locally
68
68
run : |
69
- docker build -f Dockerfile -t localhost:5000/jupyter-apis:${{ github.sha }} .
70
- docker push localhost:5000/jupyter-apis:${{ github.sha }}
69
+ docker build -f Dockerfile -t localhost:5000/jupyter-apis-aaw2 :${{ github.sha }} .
70
+ docker push localhost:5000/jupyter-apis-aaw2 :${{ github.sha }}
71
71
docker image prune
72
72
73
73
- name : Aqua Security Trivy image scan
74
74
run : |
75
75
curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin ${{ env.TRIVY_VERSION }}
76
- trivy image localhost:5000/jupyter-apis:${{ github.sha }} --exit-code 1 --timeout=20m --security-checks vuln --severity CRITICAL
76
+ trivy image localhost:5000/jupyter-apis-aaw2 :${{ github.sha }} --exit-code 1 --timeout=20m --security-checks vuln --severity CRITICAL
77
77
78
78
# Run Dockle
79
79
- name : Run dockle
80
80
uses : goodwithtech/dockle-action@main
81
81
with :
82
- image : localhost:5000/jupyter-apis:${{ github.sha }}
82
+ image : localhost:5000/jupyter-apis-aaw2 :${{ github.sha }}
83
83
format : ' list'
84
84
exit-code : ' 0'
85
85
exit-level : ' fatal'
@@ -89,13 +89,13 @@ jobs:
89
89
- name : Push to ACR if necessary
90
90
if : steps.should-i-push.outputs.boolean == 'true'
91
91
run : |
92
- docker pull localhost:5000/jupyter-apis:${{ github.sha }}
93
- docker tag localhost:5000/jupyter-apis:${{ github.sha }} ${{ env.REGISTRY }}/jupyter-apis:${{ github.sha }}
94
- docker push ${{ env.REGISTRY }}/jupyter-apis:${{ github.sha }}
92
+ docker pull localhost:5000/jupyter-apis-aaw2 :${{ github.sha }}
93
+ docker tag localhost:5000/jupyter-apis-aaw2 :${{ github.sha }} ${{ env.REGISTRY }}/jupyter-apis-aaw2 :${{ github.sha }}
94
+ docker push ${{ env.REGISTRY }}/jupyter-apis-aaw2 :${{ github.sha }}
95
95
96
96
- name : Slack Notification
97
97
if : failure() && github.event_name=='schedule'
98
98
uses : act10ns/slack@v1
99
- with :
99
+ with :
100
100
status : failure
101
101
message : jupyter-apis build failed. https://github.com/StatCan/jupyter-apis/actions/runs/${{github.run_id}}
0 commit comments