mirror of
https://github.com/jupyterhub/repo2docker.git
synced 2021-08-27 22:02:48 +03:00
Add docker latest tag for tagged releases
This commit is contained in:
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user