99 pull_request :
1010
1111env :
12- docker_repository : docker.synapse.org/syn22277123/i2b2-phi-dataset
12+ docker_repository : nlpsandbox/nlpsandbox-analysis
1313 # github.event.repository.clone_url not available for on: schedule
14- clone_url : https://github.com/nlpsandbox/i2b2-phi-dataset .git
14+ clone_url : https://github.com/nlpsandbox/nlpsandbox-analysis .git
1515 # github.event.repository.default_branch not available for on: schedule
1616 default_branch : main
1717
8080 args : Dockerfile
8181 - name : Check that packages in requirements.txt files are in asc order
8282 run : |
83- sort -f --check conda/i2b2-phi-dataset /requirements.txt
83+ sort -f --check conda/nlpsandbox /requirements.txt
8484
8585 test :
8686 needs : [lint]
@@ -124,12 +124,12 @@ jobs:
124124 restore-keys : |
125125 ${{ runner.os }}-single-buildx
126126
127- - name : Login to Docker Hub
128- uses : docker/login-action@v1
129- with :
130- registry : docker.synapse.org
131- username : ${{ secrets.SYNAPSE_USERNAME }}
132- password : ${{ secrets.SYNAPSE_TOKEN }}
127+ # - name: Login to Docker Hub
128+ # uses: docker/login-action@v1
129+ # with:
130+ # registry: docker.synapse.org
131+ # username: ${{ secrets.SYNAPSE_USERNAME }}
132+ # password: ${{ secrets.SYNAPSE_TOKEN }}
133133
134134 - name : Build image
135135 uses : docker/build-push-action@v2
@@ -151,78 +151,78 @@ jobs:
151151 "GROUPID=$(id -g)" \
152152 "SYNAPSE_TOKEN=${{ secrets.SYNAPSE_TOKEN }}" | tee -a .env >/dev/null
153153
154- - name : Generate HTML notebooks
155- run : |
156- docker run --rm \
157- --env-file .env \
158- -v $(pwd):/project \
159- rstudio-cached:latest \
160- render /project/notebooks/*.Rmd
161-
162- - name : Push image
163- if : env.push_image == 'true'
164- id : docker_push
165- uses : docker/build-push-action@v2
166- with :
167- registry : docker.synapse.org
168- context : .
169- file : Dockerfile
170- builder : ${{ steps.buildx.outputs.name }}
171- push : true
172- platforms : linux/amd64
173- tags : ${{ env.tags }}
174- labels : |
175- org.opencontainers.image.created=${{ env.created }}
176- org.opencontainers.image.source=${{ github.repositoryUrl }}
177- org.opencontainers.image.version=${{ env.version }}
178- org.opencontainers.image.revision=${{ github.sha }}
179- org.opencontainers.image.licenses=${{ github.event.repository.license.name }}
180-
181- - name : Prepare to publish HTML notebooks to GH Pages
182- if : env.push_notebooks == 'true'
183- run : |
184- git clone ${{ env.clone_url }} \
185- --branch gh-pages --single-branch gh-pages
186-
187- # Update gh-pages: version specified
188- NOTEBOOKS_TARGET_DIR=gh-pages/${{ env.version }}/notebooks
189- rm -fr ${NOTEBOOKS_TARGET_DIR}
190- mkdir -p ${NOTEBOOKS_TARGET_DIR}
191- cp -R notebooks/*.html ${NOTEBOOKS_TARGET_DIR}
192-
193- # Update gh-pages: latest, major, and minor versions
194- if [ ! -z "${{ env.version_major }}" ]; then
195- # Update latest (e.g. "1.2.3" => "latest")
196- NOTEBOOKS_TARGET_DIR=gh-pages/latest/notebooks
197- rm -fr ${NOTEBOOKS_TARGET_DIR}
198- mkdir -p ${NOTEBOOKS_TARGET_DIR}
199- cp -R notebooks/*.html ${NOTEBOOKS_TARGET_DIR}
200-
201- # Update major version (e.g. "1.2.3" => "1")
202- NOTEBOOKS_TARGET_DIR=gh-pages/${{ env.version_major }}/notebooks
203- rm -fr ${NOTEBOOKS_TARGET_DIR}
204- mkdir -p ${NOTEBOOKS_TARGET_DIR}
205- cp -R notebooks/*.html ${NOTEBOOKS_TARGET_DIR}
206-
207- # Update minor version (e.g. "1.2.3" => "1.2")
208- NOTEBOOKS_TARGET_DIR=gh-pages/${{ env.version_minor }}/notebooks
209- rm -fr ${NOTEBOOKS_TARGET_DIR}
210- mkdir -p ${NOTEBOOKS_TARGET_DIR}
211- cp -R notebooks/*.html ${NOTEBOOKS_TARGET_DIR}
212- fi
213- cd gh-pages
214- git config --local user.email "action@github.com"
215- git config --local user.name "GitHub Action"
216- git add .
217- git commit -m "Update notebooks" -a || true
218- # The above command will fail if no changes were present, so we ignore
219- # that.
220-
221- - name : Push to gh-pages
222- if : env.push_notebooks == 'true'
223- uses : ad-m/github-push-action@master
224- with :
225- branch : gh-pages
226- directory : gh-pages
227- github_token : ${{ secrets.GITHUB_TOKEN }}
228- force : true
154+ # - name: Generate HTML notebooks
155+ # run: |
156+ # docker run --rm \
157+ # --env-file .env \
158+ # -v $(pwd):/project \
159+ # rstudio-cached:latest \
160+ # render /project/notebooks/*.Rmd
161+
162+ # - name: Push image
163+ # if: env.push_image == 'true'
164+ # id: docker_push
165+ # uses: docker/build-push-action@v2
166+ # with:
167+ # registry: docker.synapse.org
168+ # context: .
169+ # file: Dockerfile
170+ # builder: ${{ steps.buildx.outputs.name }}
171+ # push: true
172+ # platforms: linux/amd64
173+ # tags: ${{ env.tags }}
174+ # labels: |
175+ # org.opencontainers.image.created=${{ env.created }}
176+ # org.opencontainers.image.source=${{ github.repositoryUrl }}
177+ # org.opencontainers.image.version=${{ env.version }}
178+ # org.opencontainers.image.revision=${{ github.sha }}
179+ # org.opencontainers.image.licenses=${{ github.event.repository.license.name }}
180+
181+ # - name: Prepare to publish HTML notebooks to GH Pages
182+ # if: env.push_notebooks == 'true'
183+ # run: |
184+ # git clone ${{ env.clone_url }} \
185+ # --branch gh-pages --single-branch gh-pages
186+
187+ # # Update gh-pages: version specified
188+ # NOTEBOOKS_TARGET_DIR=gh-pages/${{ env.version }}/notebooks
189+ # rm -fr ${NOTEBOOKS_TARGET_DIR}
190+ # mkdir -p ${NOTEBOOKS_TARGET_DIR}
191+ # cp -R notebooks/*.html ${NOTEBOOKS_TARGET_DIR}
192+
193+ # # Update gh-pages: latest, major, and minor versions
194+ # if [ ! -z "${{ env.version_major }}" ]; then
195+ # # Update latest (e.g. "1.2.3" => "latest")
196+ # NOTEBOOKS_TARGET_DIR=gh-pages/latest/notebooks
197+ # rm -fr ${NOTEBOOKS_TARGET_DIR}
198+ # mkdir -p ${NOTEBOOKS_TARGET_DIR}
199+ # cp -R notebooks/*.html ${NOTEBOOKS_TARGET_DIR}
200+
201+ # # Update major version (e.g. "1.2.3" => "1")
202+ # NOTEBOOKS_TARGET_DIR=gh-pages/${{ env.version_major }}/notebooks
203+ # rm -fr ${NOTEBOOKS_TARGET_DIR}
204+ # mkdir -p ${NOTEBOOKS_TARGET_DIR}
205+ # cp -R notebooks/*.html ${NOTEBOOKS_TARGET_DIR}
206+
207+ # # Update minor version (e.g. "1.2.3" => "1.2")
208+ # NOTEBOOKS_TARGET_DIR=gh-pages/${{ env.version_minor }}/notebooks
209+ # rm -fr ${NOTEBOOKS_TARGET_DIR}
210+ # mkdir -p ${NOTEBOOKS_TARGET_DIR}
211+ # cp -R notebooks/*.html ${NOTEBOOKS_TARGET_DIR}
212+ # fi
213+ # cd gh-pages
214+ # git config --local user.email "action@github.com"
215+ # git config --local user.name "GitHub Action"
216+ # git add .
217+ # git commit -m "Update notebooks" -a || true
218+ # # The above command will fail if no changes were present, so we ignore
219+ # # that.
220+
221+ # - name: Push to gh-pages
222+ # if: env.push_notebooks == 'true'
223+ # uses: ad-m/github-push-action@master
224+ # with:
225+ # branch: gh-pages
226+ # directory: gh-pages
227+ # github_token: ${{ secrets.GITHUB_TOKEN }}
228+ # force: true
0 commit comments