Skip to content

Commit aaf5f5d

Browse files
authored
Merge pull request #1075 from manics/github-workflow-docker-push
Update README quay.io URL, Add docker latest tag
2 parents b3fb4cc + 57466d5 commit aaf5f5d

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
# Allows pushing to registry on localhost:5000
7676
driver-opts: network=host
7777

78-
- name: Setup push rights to Docker Hub
78+
- name: Setup push rights to Docker registry
7979
if: env.REGISTRY != 'localhost:5000'
8080
run: |
8181
docker login -u "${{ secrets.DOCKER_REGISTRY_USERNAME }}" -p "${{ secrets.DOCKER_REGISTRY_TOKEN }}" "${{ env.REGISTRY }}"
@@ -89,6 +89,10 @@ jobs:
8989
if [ "${{ github.ref }}" == "refs/heads/main" ]; then
9090
TAGS="$TAGS,${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:main"
9191
fi
92+
if [ "${{ startsWith(github.ref, 'refs/tags/') }}" = "true" ]; then
93+
TAGS="$TAGS,${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest"
94+
fi
95+
9296
echo "TAGS=$TAGS"
9397
echo "TAGS=$TAGS" >> $GITHUB_ENV
9498

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![Build Status](https://github.com/jupyterhub/repo2docker/workflows/Continuous%20Integration/badge.svg)](https://github.com/jupyterhub/repo2docker/actions)
44
[![Documentation Status](https://readthedocs.org/projects/repo2docker/badge/?version=latest)](http://repo2docker.readthedocs.io/en/latest/?badge=latest)
55
[![Contribute](https://img.shields.io/badge/I_want_to_contribute!-grey?logo=jupyter)](https://repo2docker.readthedocs.io/en/latest/contributing/contributing.html)
6-
[![Docker Repository on Quay](https://quay.io/repository/jupyterhub/repo2docker/status "Docker Repository on Quay")](https://quay.io/repository/jupyterhub/repo2docker)
6+
[![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)
77

88
`repo2docker` fetches a git repository and builds a container image based on
99
the configuration files found in the repository.
@@ -100,4 +100,4 @@ The philosophy of repo2docker is inspired by
100100

101101
## Docker Image
102102

103-
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.
103+
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.

0 commit comments

Comments
 (0)