From 9703a12e6defb9b29f624a8c3b15ab944518208b Mon Sep 17 00:00:00 2001 From: Simon Li Date: Sat, 21 Aug 2021 20:17:09 +0100 Subject: [PATCH 1/3] Link to tags page on quay.io --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a6d277355..148370fcb 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![Build Status](https://github.com/jupyterhub/repo2docker/workflows/Continuous%20Integration/badge.svg)](https://github.com/jupyterhub/repo2docker/actions) [![Documentation Status](https://readthedocs.org/projects/repo2docker/badge/?version=latest)](http://repo2docker.readthedocs.io/en/latest/?badge=latest) [![Contribute](https://img.shields.io/badge/I_want_to_contribute!-grey?logo=jupyter)](https://repo2docker.readthedocs.io/en/latest/contributing/contributing.html) -[![Docker Repository on Quay](https://quay.io/repository/jupyterhub/repo2docker/status "Docker Repository on Quay")](https://quay.io/repository/jupyterhub/repo2docker) +[![Docker Repository on Quay](https://quay.io/repository/jupyterhub/repo2docker/status "Docker Repository on Quay")](https://quay.io/repository/jupyterhub/repo2docker?tab=tags) `repo2docker` fetches a git repository and builds a container image based on the configuration files found in the repository. @@ -100,4 +100,4 @@ The philosophy of repo2docker is inspired by ## Docker Image -Repo2Docker can be run inside a Docker container if access to the Docker Daemon is provided, for example see [BinderHub](https://github.com/jupyterhub/binderhub). Docker images are [published to quay.io](https://quay.io/repository/jupyterhub/repo2docker). The old [Docker Hub image](https://hub.docker.com/r/jupyter/repo2docker) is no longer supported. +Repo2Docker can be run inside a Docker container if access to the Docker Daemon is provided, for example see [BinderHub](https://github.com/jupyterhub/binderhub). Docker images are [published to quay.io](https://quay.io/repository/jupyterhub/repo2docker?tab=tags). The old [Docker Hub image](https://hub.docker.com/r/jupyter/repo2docker) is no longer supported. From 4c89e51d7a57aadeb3e9759dbfb2219a8a9d890d Mon Sep 17 00:00:00 2001 From: Simon Li Date: Sat, 21 Aug 2021 21:02:34 +0100 Subject: [PATCH 2/3] Add docker latest tag for tagged releases --- .github/workflows/release.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index be0200728..ffea61a9c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -75,7 +75,7 @@ jobs: # Allows pushing to registry on localhost:5000 driver-opts: network=host - - name: Setup push rights to Docker Hub + - name: Setup push rights to Docker registry if: env.REGISTRY != 'localhost:5000' run: | docker login -u "${{ secrets.DOCKER_REGISTRY_USERNAME }}" -p "${{ secrets.DOCKER_REGISTRY_TOKEN }}" "${{ env.REGISTRY }}" @@ -89,6 +89,10 @@ jobs: if [ "${{ github.ref }}" == "refs/heads/main" ]; then TAGS="$TAGS,${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:main" fi + if [ "${{ startsWith(github.ref, 'refs/tags/') }}" = "true" ]; then + TAGS="$TAGS,${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest" + fi + echo "TAGS=$TAGS" echo "TAGS=$TAGS" >> $GITHUB_ENV From 57466d5c958c7690622c10fd89f1f5858e11e583 Mon Sep 17 00:00:00 2001 From: Simon Li Date: Mon, 23 Aug 2021 21:30:20 +0100 Subject: [PATCH 3/3] Use static badge for quay.io container --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 148370fcb..7b055bfb4 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![Build Status](https://github.com/jupyterhub/repo2docker/workflows/Continuous%20Integration/badge.svg)](https://github.com/jupyterhub/repo2docker/actions) [![Documentation Status](https://readthedocs.org/projects/repo2docker/badge/?version=latest)](http://repo2docker.readthedocs.io/en/latest/?badge=latest) [![Contribute](https://img.shields.io/badge/I_want_to_contribute!-grey?logo=jupyter)](https://repo2docker.readthedocs.io/en/latest/contributing/contributing.html) -[![Docker Repository on Quay](https://quay.io/repository/jupyterhub/repo2docker/status "Docker Repository on Quay")](https://quay.io/repository/jupyterhub/repo2docker?tab=tags) +[![Docker Repository on Quay](https://img.shields.io/badge/quay.io-container-green "Docker Repository on Quay")](https://quay.io/repository/jupyterhub/repo2docker?tab=tags) `repo2docker` fetches a git repository and builds a container image based on the configuration files found in the repository.