<commit_before>#!/bin/bash

DOCKER_LOGIN="$1"
DOCKER_PASS="$2"
DOCKER_REPO="$3"
GIT_BRANCH="$4"

if [ -z $1 ] || [ -z $2 ] || [ -z $3 ] || [ -z $4 ] ; then
    echo "DockerHub login, pass & repo and/or git branch missing!"
    echo "Please add as vars to build command!"
    echo "example:              $0 dockerhub_login dockerhub_password dockerhub_repo git_branch"
    echo "example for Zammad:   $0 zammad password <PASSWORD> develop"
    echo "git_branch can be stable, develop, stable-1.1 or anything else available @ https://github.com/zammad/zammad"
    exit 1
fi

docker build --no-cache --pull --build-arg ${GIT_BRANCH} --build-arg BUILD_DATE=$(date -u +”%Y-%m-%dT%H:%M:%SZ”) -t ${DOCKER_LOGIN}/${DOCKER_REPO}:${GIT_BRANCH} .
docker login -u ${DOCKER_LOGIN} -p ${DOCKER_PASS}
docker push ${DOCKER_LOGIN}/${DOCKER_REPO}:${GIT_BRANCH}<commit_msg>removed git branch from push script<commit_after>#!/bin/bash

DOCKER_LOGIN="$1"
DOCKER_PASS="$2"
DOCKER_REPO="$3"

if [ -z $1 ] || [ -z $2 ] || [ -z $3 ]  ; then
    echo "DockerHub login, pass and/or repo missing!"
    echo "Please add as vars to build command!"
    echo "example:              $0 dockerhub_login dockerhub_password dockerhub_repo"
    echo "example for Zammad:   $0 zammad password <PASSWORD>"
    exit 1
fi

docker build --no-cache --pull --build-arg ${GIT_BRANCH} --build-arg BUILD_DATE=$(date -u +”%Y-%m-%dT%H:%M:%SZ”) -t ${DOCKER_LOGIN}/${DOCKER_REPO}:latest .
docker login -u ${DOCKER_LOGIN} -p ${DOCKER_PASS}
docker push ${DOCKER_LOGIN}/${DOCKER_REPO}:latest
{'fraction_non_alphanumeric': 0.1652569941444372, 'fraction_numerical': 0.014313597918022121, 'mean_word_length': 3.8213166144200628, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2721908', 'n_tokens_mistral': 617, 'n_tokens_neox': 590, 'n_words': 153}