Skip to content
Snippets Groups Projects
Commit f3c6d125 authored by Emmanuel Bruno's avatar Emmanuel Bruno
Browse files

adds cache, proxy and slides.

parent dd476abe
No related branches found
No related tags found
No related merge requests found
...@@ -37,12 +37,22 @@ jobs: ...@@ -37,12 +37,22 @@ jobs:
with: with:
username: ${{ secrets.DOCKERHUB_USERNAME }} username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }} password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to Private registry
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
registry: ${{ secrets.PRIVATEHUB_HOSTNAME }}
username: ${{ secrets.PRIVATEHUB_USERNAME }}
password: ${{ secrets.PRIVATEHUB_TOKEN }}
- uses: webfactory/ssh-agent@v0.7.0 - uses: webfactory/ssh-agent@v0.7.0
with: with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2 uses: docker/setup-buildx-action@v2
with: with:
config-inline: |
[registry."docker.io"]
mirrors = ["${{ secrets.DOCKERHUB_PROXY_HOSTNAME }}"]
driver-opts: | driver-opts: |
network=host network=host
buildkitd-flags: | buildkitd-flags: |
...@@ -64,6 +74,8 @@ jobs: ...@@ -64,6 +74,8 @@ jobs:
push: ${{ github.event_name != 'pull_request' }} push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}
cache-from: type=registry,ref=${{ secrets.PRIVATEHUB_HOSTNAME }}/${{ secrets.PRIVATEHUB_USERNAME }}/${{ env.REPOSITORY_NAME }}:buildcache
cache-to: type=registry,ref=${{ secrets.PRIVATEHUB_HOSTNAME }}/${{ secrets.PRIVATEHUB_USERNAME }}/${{ env.REPOSITORY_NAME }}:buildcache,mode=max
- name: Update repo description - name: Update repo description
uses: peter-evans/dockerhub-description@v3 uses: peter-evans/dockerhub-description@v3
with: with:
......
jinja-yaml-magic jinja-yaml-magic
jupyter-book jupyter-book
jupyterlab-myst jupyterlab-myst
jupyterlab_rise
jupyter-server-proxy jupyter-server-proxy
jupyterlab_latex jupyterlab_latex
jupyterlab_widgets jupyterlab_widgets
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment