Skip to content

Commit aeb3c46

Browse files
mathis-marcotteMathis Marcotte
and
Mathis Marcotte
authored
update jupyter image to build 2.0 (#311)
* update jupyter image to build 2.0 * random commit to re-trigger ci --------- Co-authored-by: Mathis Marcotte <[email protected]>
1 parent ecac7ac commit aeb3c46

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.github/workflows/publish.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -66,20 +66,20 @@ jobs:
6666

6767
- name: Build image locally
6868
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 }}
7171
docker image prune
7272
7373
- name: Aqua Security Trivy image scan
7474
run: |
7575
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
7777
7878
# Run Dockle
7979
- name: Run dockle
8080
uses: goodwithtech/dockle-action@main
8181
with:
82-
image: localhost:5000/jupyter-apis:${{ github.sha }}
82+
image: localhost:5000/jupyter-apis-aaw2:${{ github.sha }}
8383
format: 'list'
8484
exit-code: '0'
8585
exit-level: 'fatal'
@@ -89,13 +89,13 @@ jobs:
8989
- name: Push to ACR if necessary
9090
if: steps.should-i-push.outputs.boolean == 'true'
9191
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 }}
9595
9696
- name: Slack Notification
9797
if: failure() && github.event_name=='schedule'
9898
uses: act10ns/slack@v1
99-
with:
99+
with:
100100
status: failure
101101
message: jupyter-apis build failed. https://github.com/StatCan/jupyter-apis/actions/runs/${{github.run_id}}

Taskfile.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ vars:
1212

1313
CLUSTER_NAME: jupyter-apis
1414
CONTEXT_NAME: "k3d-{{.CLUSTER_NAME}}"
15-
CONTAINER_IMAGE_NAME: jupyter-apis
15+
CONTAINER_IMAGE_NAME: jupyter-apis-aaw2
1616
CONTAINER_IMAGE_TAG: {sh: git rev-parse HEAD}
1717
CONTAINER_IMAGE: "{{.CONTAINER_IMAGE_NAME}}:{{.CONTAINER_IMAGE_TAG}}"
1818
KUBECTL: "kubectl --context={{.CONTEXT_NAME}}"

0 commit comments

Comments
 (0)