Skip to content

Commit

Permalink
Use r2d-action to push to registry
Browse files Browse the repository at this point in the history
Brings in jupyterhub/repo2docker-action#85,
which just uses docker push in upstream r2d-action to fix
the timeout issues.
  • Loading branch information
yuvipanda committed Mar 11, 2022
1 parent 1858778 commit f4dc769
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,18 @@ jobs:
uses: actions/checkout@main

- name: Update jupyter dependencies with repo2docker
uses: yuvipanda/repo2docker-action@fix-output
uses: yuvipanda/repo2docker-action@docker-push
id: r2d
with:
# Make sure username & password/token pair matches your registry credentials
DOCKER_USERNAME: ${{ secrets.QUAY_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.QUAY_PASSWORD }}
DOCKER_REGISTRY: "quay.io"
NO_PUSH: "true"
IMAGE_NAME: "2i2c/utoronto-image"

- name: Login to Quay.io
uses: docker/login-action@v1
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}

- name: docker push
# FIXME: Due to timeouts in the r2d action, we push manually
run: docker push ${{ steps.r2d.outputs.IMAGE_SHA_NAME }}
password: ${{ secrets.QUAY_PASSWORD }}
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
uses: actions/checkout@main

- name: update jupyter dependencies with repo2docker
uses: jupyterhub/repo2docker-action@master
uses: yuvipanda/repo2docker-action@docker-push
with: # make sure username & password/token matches your registry
NO_PUSH: "true"
DOCKER_REGISTRY: "quay.io"
Expand Down

0 comments on commit f4dc769

Please sign in to comment.