Commit c616a8c 1 parent 4f14280 commit c616a8c Copy full SHA for c616a8c
File tree 1 file changed +27
-5
lines changed
1 file changed +27
-5
lines changed Original file line number Diff line number Diff line change 21
21
timeout-minutes : 300
22
22
23
23
steps :
24
+ - name : Set environment variables for PR
25
+ if : github.event_name == 'pull_request'
26
+ run : |
27
+ echo "IMAGE_TAGS=pr" >> $GITHUB_ENV
28
+
24
29
- name : Check out
25
30
if : always()
26
31
uses : actions/checkout@v4
@@ -42,12 +47,11 @@ jobs:
42
47
containerfiles : |
43
48
./Dockerfile
44
49
45
- - name : Run tests
46
- run : |
47
- podman run -e MPIEXEC_FLAGS="--allow-run-as-root --oversubscribe" --workdir /pynucleus --rm ${{ steps.build_image.outputs.image }}:${{ github.sha }} python3 -m pytest --junit-xml=test-results.xml tests/
50
+ # - name: Run tests
51
+ # run: |
52
+ # podman run -e MPIEXEC_FLAGS="--allow-run-as-root --oversubscribe" --workdir /pynucleus --rm ${{ steps.build_image.outputs.image }}:${{ github.sha }} python3 -m pytest --junit-xml=test-results.xml tests/
48
53
49
54
- name : Push To GHCR
50
- if : github.event_name == 'push'
51
55
uses : redhat-actions/push-to-registry@v2
52
56
id : push
53
57
with :
60
64
--disable-content-trust
61
65
62
66
- name : Echo outputs
63
- if : github.event_name == 'push'
64
67
run : |
65
68
echo "${{ toJSON(steps.push.outputs) }}"
69
+
70
+ - name : Slim the image
71
+ uses : kitabisa/docker-slim-action@v1
72
+ env :
73
+ DSLIM_HTTP_PROBE : false
74
+ with :
75
+ target : IMAGE_NAME:{{ steps.build_image.outputs.image }}
76
+ tag : " slim-{{ steps.build_image.outputs.tags }}"
77
+
78
+ - name : Push To GHCR
79
+ uses : redhat-actions/push-to-registry@v2
80
+ with :
81
+ image : ${{ steps.build_image.outputs.image }}
82
+ tags : slim-${{ steps.build_image.outputs.tags }}
83
+ registry : ${{ env.IMAGE_REGISTRY }}
84
+ username : ${{ env.REGISTRY_USER }}
85
+ password : ${{ env.REGISTRY_PASSWORD }}
86
+ extra-args : |
87
+ --disable-content-trust
You can’t perform that action at this time.
0 commit comments