kopia lustrzana https://github.com/jupyterhub/repo2docker
Switch to main
rodzic
e6f4966881
commit
c6f09ea2e4
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue