Push to new GitHub Container Registry

This commit is contained in:
Calle Pettersson
2020-10-06 11:52:11 +01:00
committed by Łukasz Mierzwa
parent 7270e7bb99
commit b1cc4c644a
+1
View File
@@ -273,6 +273,7 @@ jobs:
### GitHub
# tag with the version only if we have a git tag (new release was pushed)
- if [ -n "$TRAVIS_TAG" ]; then travis_retry docker login docker.pkg.github.com -u prymitive -p "${GITHUB_PACKAGES_TOKEN}" && docker tag "${LOCAL_IMAGE}" "docker.pkg.github.com/prymitive/karma/karma:${VERSION}" && travis_retry docker push "docker.pkg.github.com/prymitive/karma/karma:${VERSION}" ; fi
- if [ -n "$TRAVIS_TAG" ]; then travis_retry docker login gchr.io -u prymitive -p "${GITHUB_PACKAGES_TOKEN}" && docker tag "${LOCAL_IMAGE}" "gchr.io/prymitive/karma:${VERSION}" && travis_retry docker push "gchr.io/prymitive/karma:${VERSION}" ; fi
- stage: Build and Deploy
name: Deploy demo app to Heroku