Skip to content

Commit 34fe245

Browse files
committed
Automatically update binder Dockerfile
1 parent e6ff427 commit 34fe245

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/container.yml

+28
Original file line numberDiff line numberDiff line change
@@ -115,3 +115,31 @@ jobs:
115115

116116
- name: Run container test
117117
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+
uses: actions/checkout@v4
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@v3
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

Comments
 (0)