File tree 4 files changed +60
-10
lines changed
4 files changed +60
-10
lines changed Original file line number Diff line number Diff line change 1
1
name : CI
2
2
3
3
on :
4
- push :
5
- branches : [ "master" ]
6
- pull_request :
7
- branches : [ "master" ]
4
+ # push:
5
+ # branches: [ "master" ]
6
+ # pull_request:
7
+ # branches: [ "master" ]
8
8
workflow_dispatch :
9
9
10
10
Original file line number Diff line number Diff line change 1
1
name : Container
2
2
3
3
on :
4
- push :
5
- branches : [ "master" ]
6
- pull_request :
7
- branches : [ "master" ]
4
+ # push:
5
+ # branches: [ "master" ]
6
+ # pull_request:
7
+ # branches: [ "master" ]
8
8
workflow_dispatch :
9
9
10
10
env :
Original file line number Diff line number Diff line change 1
1
name : Documentation CI
2
2
3
3
on :
4
- pull_request :
5
- branches : [ "master" ]
4
+ # pull_request:
5
+ # branches: [ "master" ]
6
+ workflow_dispatch :
6
7
7
8
permissions :
8
9
contents : read
Original file line number Diff line number Diff line change
1
+ name : Container slim
2
+
3
+ on :
4
+ push :
5
+ branches : [ "master" ]
6
+ pull_request :
7
+ branches : [ "master" ]
8
+ workflow_dispatch :
9
+
10
+ env :
11
+ IMAGE_NAME : pynucleus
12
+ IMAGE_TAGS : latest ${{ github.sha }}
13
+ IMAGE_REGISTRY : ghcr.io/${{ github.repository_owner }}
14
+ REGISTRY_USER : ${{ github.actor }}
15
+ REGISTRY_PASSWORD : ${{ github.token }}
16
+
17
+ jobs :
18
+
19
+ container :
20
+ runs-on : ubuntu-latest
21
+ timeout-minutes : 300
22
+
23
+ steps :
24
+ - name : Set environment variables for PR
25
+ run : |
26
+ echo "IMAGE_TAGS=pr" >> $GITHUB_ENV
27
+
28
+ - name : Pull image
29
+ run : |
30
+ docker pull ghcr.io/sandialabs/pynucleus:latest
31
+
32
+ - name : Slim the image
33
+ uses : kitabisa/docker-slim-action@v1
34
+ env :
35
+ DSLIM_HTTP_PROBE : false
36
+ with :
37
+ target : ghcr.io/sandialabs/pynucleus:latest
38
+ tag : " slim-latest"
39
+
40
+ # - name: Push To GHCR
41
+ # uses: redhat-actions/push-to-registry@v2
42
+ # with:
43
+ # image: pynucleus
44
+ # tags: slim-latest
45
+ # registry: ${{ env.IMAGE_REGISTRY }}
46
+ # username: ${{ env.REGISTRY_USER }}
47
+ # password: ${{ env.REGISTRY_PASSWORD }}
48
+ # extra-args: |
49
+ # --disable-content-trust
You can’t perform that action at this time.
0 commit comments