Switch to main
MODIFY
.github/workflows/release.yml
.github/workflows/release.yml
@@ -46,7 +46,7 @@ jobs:
steps:
- name: Should we push this image to a public registry?
run: |
- if [ "${{ startsWith(github.ref, 'refs/tags/') || (github.ref == 'refs/heads/master') }}" = "true" ]; then
+ if [ "${{ startsWith(github.ref, 'refs/tags/') || (github.ref == 'refs/heads/main') }}" = "true" ]; then
# Empty => Docker Hub
echo "REGISTRY=" >> $GITHUB_ENV
else
@@ -82,8 +82,8 @@ jobs:
run: |
VERSION=$(python3 -c 'import versioneer; print(versioneer.get_version().replace("+", "-"))')
TAGS="${{ env.REGISTRY }}jupyter/repo2docker:$VERSION"
- if [ "${{ github.ref }}" == "refs/heads/master" ]; then
- TAGS="$TAGS,${{ env.REGISTRY }}jupyter/repo2docker:master"
+ if [ "${{ github.ref }}" == "refs/heads/main" ]; then
+ TAGS="$TAGS,${{ env.REGISTRY }}jupyter/repo2docker:main"
fi
echo "TAGS=$TAGS"
echo "TAGS=$TAGS" >> $GITHUB_ENV

Switch to main