Skip to content

Commit

Permalink
feat: test dockerhub
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorfdl committed Jun 18, 2024
1 parent be23a18 commit 9ecf311
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions dockerhub.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,16 @@ if ! [[ "$PATCH" =~ ^[0-9]+$ ]]; then
exit 1
fi

# Ensure CARGO_SERVER_SSL_CA, CARGO_SERVER_SSL_CERT, and CARGO_SERVER_SSL_KEY are set
if [ -z "$CARGO_SERVER_SSL_CA" ] || [ -z "$CARGO_SERVER_SSL_CERT" ] || [ -z "$CARGO_SERVER_SSL_KEY" ]; then
echo "Error: SSL environment variables are not set."
exit 1
fi

CARGO_SERVER_SSL_CA_BASE64=$(echo "$CARGO_SERVER_SSL_CA" | base64)
CARGO_SERVER_SSL_CERT_BASE64=$(echo "$CARGO_SERVER_SSL_CERT" | base64)
CARGO_SERVER_SSL_KEY_BASE64=$(echo "$CARGO_SERVER_SSL_KEY" | base64)

echo "CARGO_SERVER_SSL_CA_BASE64: $CARGO_SERVER_SSL_CA_BASE64"
echo "CARGO_SERVER_SSL_CERT_BASE64: $CARGO_SERVER_SSL_CERT_BASE64"
echo "CARGO_SERVER_SSL_KEY_BASE64: $CARGO_SERVER_SSL_KEY_BASE64"
# Alpine
# docker buildx build --push --build-arg TAGORELAY_VERSION=${FULL_VERSION} \
# --platform linux/arm64/v8,linux/amd64 \
Expand All @@ -54,4 +57,5 @@ docker buildx build --push --build-arg TAGORELAY_VERSION=${FULL_VERSION} \
--tag tagoio/tagorelay:${MAJOR}.${MINOR}-bullseye \
--tag tagoio/tagorelay:${MAJOR}.${MINOR}.${PATCH}-bullseye \
--tag tagoio/tagorelay:${MAJOR}.${MINOR} \
--tag tagoio/tagorelay:${MAJOR}.${MINOR}.${PATCH} .
--tag tagoio/tagorelay:${MAJOR}.${MINOR}.${PATCH} \
.

0 comments on commit 9ecf311

Please sign in to comment.