d38f9444c4
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.
11 lines
489 B
Bash
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
|