@@ -32,114 +32,114 @@ jobs:
32
32
echo "IMAGE_TAGS=pr-${{ github.event.number }}" >> $GITHUB_ENV
33
33
echo "TEST_IMAGE_TAG=pr-${{ github.event.number }}" >> $GITHUB_ENV
34
34
35
- - name : Check out
36
- if : always()
37
-
38
- with :
39
- fetch-depth : 0
40
-
41
- # - uses: hadolint/[email protected]
42
- # with:
43
- # dockerfile: Dockerfile
44
- # ignore: 'DL3008,DL3013'
45
- # verbose: true
46
-
47
- - name : Build Image
48
- id : build_image
49
- uses : redhat-actions/buildah-build@v2
50
- with :
51
- image : ${{ env.IMAGE_NAME }}
52
- tags : ${{ env.IMAGE_TAGS }}
53
- containerfiles : |
54
- ./Dockerfile
55
- build-args : |
56
- PYNUCLEUS_BUILD_PARALLELISM=4
57
-
58
- - name : Push To GHCR
59
- if : (github.event_name == 'pull_request') && (github.actor != 'dependabot[bot]')
60
- uses : redhat-actions/push-to-registry@v2
61
- id : push-pr
62
- with :
63
- image : ${{ steps.build_image.outputs.image }}
64
- tags : ${{ env.IMAGE_TAGS }}
65
- registry : ${{ env.IMAGE_REGISTRY }}
66
- username : ${{ env.REGISTRY_USER }}
67
- password : ${{ env.REGISTRY_PASSWORD }}
68
- extra-args : |
69
- --disable-content-trust
70
-
71
- - name : Run tests
72
- run : |
73
- podman run \
74
- -e MPIEXEC_FLAGS="--allow-run-as-root --oversubscribe" \
75
- --workdir /pynucleus \
76
- --rm \
77
- --entrypoint='["python3", "-m", "pytest", "--junit-xml", "test-results.xml"]' \
78
- ${{ steps.build_image.outputs.image }}:${{ env.TEST_IMAGE_TAG }}
79
-
80
- - name : Push To GHCR
81
- if : github.event_name == 'push'
82
- uses : redhat-actions/push-to-registry@v2
83
- id : push
84
- with :
85
- image : ${{ steps.build_image.outputs.image }}
86
- tags : ${{ steps.build_image.outputs.tags }}
87
- registry : ${{ env.IMAGE_REGISTRY }}
88
- username : ${{ env.REGISTRY_USER }}
89
- password : ${{ env.REGISTRY_PASSWORD }}
90
- extra-args : |
91
- --disable-content-trust
92
-
93
- - name : Echo outputs
94
- if : github.event_name == 'push'
95
- run : |
96
- echo "${{ toJSON(steps.push.outputs) }}"
97
-
98
- container-test :
99
- needs : container
100
-
101
- strategy :
102
- matrix :
103
- include :
104
- - runner : ' ubuntu-latest'
105
-
106
- name : Container test ${{ matrix.runner }}
107
- runs-on : ${{ matrix.runner }}
108
-
109
- steps :
110
- - name : Check out
111
-
112
-
113
- - name : Install podman-compose
114
- run : pip install podman-compose
115
-
116
- - name : Run container test
117
- run : podman-compose run quick-test
118
-
119
- update-binder-image :
120
- needs : container
121
- if : github.event_name == 'push'
122
-
123
- runs-on : ubuntu-latest
124
-
125
- steps :
126
- - name : Checkout binder branch
127
-
128
- with :
129
- ref : binder
130
-
131
- - name : Modify Dockerfile
132
- run : |
133
- python generateDockerfile.py ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.TEST_IMAGE_TAG }}
134
-
135
- - name : Create PR
136
- uses : peter-evans/create-pull-request@v6
137
- with :
138
- token : ${{ secrets.GITHUB_TOKEN }}
139
- commit-message : " Update Dockerfile"
140
- title : " Update Dockerfile"
141
- body : |
142
- This PR updates the Dockerfile for binder.
143
- branch : binder-update
144
- base : binder
145
- delete-branch : true
35
+ # - name: Check out
36
+ # if: always()
37
+
38
+ # with:
39
+ # fetch-depth: 0
40
+
41
+ # # - uses: hadolint/[email protected]
42
+ # # with:
43
+ # # dockerfile: Dockerfile
44
+ # # ignore: 'DL3008,DL3013'
45
+ # # verbose: true
46
+
47
+ # - name: Build Image
48
+ # id: build_image
49
+ # uses: redhat-actions/buildah-build@v2
50
+ # with:
51
+ # image: ${{ env.IMAGE_NAME }}
52
+ # tags: ${{ env.IMAGE_TAGS }}
53
+ # containerfiles: |
54
+ # ./Dockerfile
55
+ # build-args: |
56
+ # PYNUCLEUS_BUILD_PARALLELISM=4
57
+
58
+ # - name: Push To GHCR
59
+ # if: (github.event_name == 'pull_request') && (github.actor != 'dependabot[bot]')
60
+ # uses: redhat-actions/push-to-registry@v2
61
+ # id: push-pr
62
+ # with:
63
+ # image: ${{ steps.build_image.outputs.image }}
64
+ # tags: ${{ env.IMAGE_TAGS }}
65
+ # registry: ${{ env.IMAGE_REGISTRY }}
66
+ # username: ${{ env.REGISTRY_USER }}
67
+ # password: ${{ env.REGISTRY_PASSWORD }}
68
+ # extra-args: |
69
+ # --disable-content-trust
70
+
71
+ # - name: Run tests
72
+ # run: |
73
+ # podman run \
74
+ # -e MPIEXEC_FLAGS="--allow-run-as-root --oversubscribe" \
75
+ # --workdir /pynucleus \
76
+ # --rm \
77
+ # --entrypoint='["python3", "-m", "pytest", "--junit-xml", "test-results.xml"]' \
78
+ # ${{ steps.build_image.outputs.image }}:${{ env.TEST_IMAGE_TAG }}
79
+
80
+ # - name: Push To GHCR
81
+ # if: github.event_name == 'push'
82
+ # uses: redhat-actions/push-to-registry@v2
83
+ # id: push
84
+ # with:
85
+ # image: ${{ steps.build_image.outputs.image }}
86
+ # tags: ${{ steps.build_image.outputs.tags }}
87
+ # registry: ${{ env.IMAGE_REGISTRY }}
88
+ # username: ${{ env.REGISTRY_USER }}
89
+ # password: ${{ env.REGISTRY_PASSWORD }}
90
+ # extra-args: |
91
+ # --disable-content-trust
92
+
93
+ # - name: Echo outputs
94
+ # if: github.event_name == 'push'
95
+ # run: |
96
+ # echo "${{ toJSON(steps.push.outputs) }}"
97
+
98
+ # container-test:
99
+ # needs: container
100
+
101
+ # strategy:
102
+ # matrix:
103
+ # include:
104
+ # - runner: 'ubuntu-latest'
105
+
106
+ # name: Container test ${{ matrix.runner }}
107
+ # runs-on: ${{ matrix.runner }}
108
+
109
+ # steps:
110
+ # - name: Check out
111
+
112
+
113
+ # - name: Install podman-compose
114
+ # run: pip install podman-compose
115
+
116
+ # - name: Run container test
117
+ # run: podman-compose run quick-test
118
+
119
+ # update-binder-image:
120
+ # needs: container
121
+ # if: github.event_name == 'push'
122
+
123
+ # runs-on: ubuntu-latest
124
+
125
+ # steps:
126
+ # - name: Checkout binder branch
127
+
128
+ # with:
129
+ # ref: binder
130
+
131
+ # - name: Modify Dockerfile
132
+ # run: |
133
+ # python generateDockerfile.py ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.TEST_IMAGE_TAG }}
134
+
135
+ # - name: Create PR
136
+ # uses: peter-evans/create-pull-request@v6
137
+ # with:
138
+ # token: ${{ secrets.GITHUB_TOKEN }}
139
+ # commit-message: "Update Dockerfile"
140
+ # title: "Update Dockerfile"
141
+ # body: |
142
+ # This PR updates the Dockerfile for binder.
143
+ # branch: binder-update
144
+ # base: binder
145
+ # delete-branch: true
0 commit comments