tet123/jenkins-jobs/scripts/trigger-nightly-docker.sh
Vojtech Juranek d38f9444c4 DBZ-6216 Remove Docker credential
Remove docker credentials and login to docker hub from scripts and jobs.
As this is in separate commit, it can be easily reverted in case we
want to publish to docker hub again in the future.
2023-03-23 13:29:19 +01:00

11 lines
489 B
Bash

#!/bin/bash
DEBEZIUM_REPOSITORY=debezium/debezium
DEBEZIUM_BRANCH=main
SNAPSHOT_VERSION=$(curl -s https://raw.githubusercontent.com/$DEBEZIUM_REPOSITORY/$DEBEZIUM_BRANCH/pom.xml | grep -o '<version>.*-SNAPSHOT</version>' | awk -F '[<>]' '{print $3}')
docker login -u ${QUAYIO_CREDENTIALS%:*} -p ${QUAYIO_CREDENTIALS#*:} quay.io
docker build --build-arg DEBEZIUM_VERSION=$SNAPSHOT_VERSION -t quay.io/debezium/connect:nightly connect/snapshot
docker push quay.io/debezium/connect:nightly