This commit is contained in:
@@ -20,6 +20,12 @@ if echo "$GIT_URL" | grep -q "^git@"; then
|
||||
REPO=$(echo "$GIT_URL" | cut -f 2 -d '/' | xargs -- basename -s .git)
|
||||
fi
|
||||
|
||||
if true; then
|
||||
echo "GIT: [$GIT]"
|
||||
echo "OWNER: [$OWNER]"
|
||||
echo "REPO: [$REPO]"
|
||||
fi
|
||||
|
||||
# if [[ "$GIT_URL" =~ [:\/]([^\/:]+)\/([^\/\.]+)(\.git)?$ ]]; then
|
||||
# OWNER="${BASH_REMATCH[1]}"
|
||||
# REPO="${BASH_REMATCH[2]}"
|
||||
@@ -47,8 +53,8 @@ done
|
||||
|
||||
if [ -f ./Dockerfile ]; then
|
||||
echo "Dockerfile detected at main level"
|
||||
echo "DEBUG: docker buildx build --tag=$REPO:$(date +%y%m%d) ."
|
||||
docker buildx build --tag=$REPO:$(date +%y%m%d) .
|
||||
echo "DEBUG: docker buildx build --tag $REPO:$(date +%y%m%d) ."
|
||||
docker buildx build --tag $REPO:$(date +%y%m%d) .
|
||||
docker login $Git --username=$GitUser --password=$AccessToken
|
||||
docker push $REPO:$(date +%y%m%d)
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user