8 Commits
Author SHA1 Message Date
Karsten Jeppesen 304dea1268 test
CICD-UCN/wwwsqldesigner/pipeline/head This commit looks good
2026-11-25 20:02:30 +01:00
Karsten Jeppesen 562b82a8f8 test
CICD-UCN/wwwsqldesigner/pipeline/head There was a failure building this commit
2026-11-25 19:34:50 +01:00
Karsten Jeppesen 6bbb9603c2 test
CICD-UCN/wwwsqldesigner/pipeline/head There was a failure building this commit
2026-11-25 19:16:00 +01:00
Karsten Jeppesen 87aa155af4 test
CICD-UCN/wwwsqldesigner/pipeline/head There was a failure building this commit
2026-11-25 19:14:04 +01:00
Karsten Jeppesen cb085564c3 test
CICD-UCN/wwwsqldesigner/pipeline/head There was a failure building this commit
2026-11-25 19:12:19 +01:00
Karsten Jeppesen 3a1cc56820 test
CICD-UCN/wwwsqldesigner/pipeline/head There was a failure building this commit
2026-11-25 19:05:43 +01:00
Karsten Jeppesen d146a1aaa6 test
CICD-UCN/wwwsqldesigner/pipeline/head There was a failure building this commit
2026-11-25 19:01:27 +01:00
Karsten Jeppesen 277ab85aef test
CICD-UCN/wwwsqldesigner/pipeline/head There was a failure building this commit
2026-11-25 18:56:31 +01:00
+14 -3
View File
@@ -20,6 +20,12 @@ if echo "$GIT_URL" | grep -q "^git@"; then
REPO=$(echo "$GIT_URL" | cut -f 2 -d '/' | xargs -- basename -s .git) REPO=$(echo "$GIT_URL" | cut -f 2 -d '/' | xargs -- basename -s .git)
fi fi
if true; then
echo "GIT: [$GIT]"
echo "OWNER: [$OWNER]"
echo "REPO: [$REPO]"
fi
# if [[ "$GIT_URL" =~ [:\/]([^\/:]+)\/([^\/\.]+)(\.git)?$ ]]; then # if [[ "$GIT_URL" =~ [:\/]([^\/:]+)\/([^\/\.]+)(\.git)?$ ]]; then
# OWNER="${BASH_REMATCH[1]}" # OWNER="${BASH_REMATCH[1]}"
# REPO="${BASH_REMATCH[2]}" # REPO="${BASH_REMATCH[2]}"
@@ -47,7 +53,12 @@ done
if [ -f ./Dockerfile ]; then if [ -f ./Dockerfile ]; then
echo "Dockerfile detected at main level" echo "Dockerfile detected at main level"
docker buildx build --tag=$REPO:$(date +%y%m%d) . ### ALL NAMES MUST BE LOWER CASE
docker login $Git --username=$GitUser --password=$AccessToken imageName=$(echo -n "$GIT/$OWNER/$REPO:$(date +%y%m%d)" | tr '[:upper:]' '[:lower:]')
docker push $REPO:$(date +%y%m%d) echo "DEBUG: docker build --tag=$imageName ."
sudo docker build --tag=$imageName .
echo "DEBUG: docker login $GIT --username=$OWNER --password=$GITEA_API_KEY"
sudo docker login $GIT --username=$OWNER --password=$GITEA_API_KEY
echo "DEBUG: docker push $imageName"
sudo docker push $imageName
fi fi