From eff14b43f4509e35afaffa75c7e35c565db2711a Mon Sep 17 00:00:00 2001 From: Abhilash Raj Date: Wed, 14 Oct 2020 17:25:57 -0700 Subject: [PATCH] Build and push to Github Container Registry. --- .travis/deploy.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis/deploy.py b/.travis/deploy.py index 8958536..c2e1ed0 100644 --- a/.travis/deploy.py +++ b/.travis/deploy.py @@ -25,6 +25,8 @@ def login(url): password = os.environ['QUAY_PASSWORD'] elif 'docker' in url.lower(): password = os.environ['DOCKER_PASSWORD'] + elif 'ghcr' in url.lower(): + password = os.environ['GITHUB_PASSWORD'] else: print('Password not found for {0}'.format(url)) return None @@ -57,7 +59,7 @@ if __name__ == '__main__': prev_failed = False - for url in ('quay.io', 'docker.io'): + for url in ('quay.io', 'docker.io', 'ghcr.io'): core = ('maxking/mailman-core:rolling', '{0}/maxking/mailman-core:{1}'.format(url, img_tag))