Compare commits
16 Commits
dev
...
drone-setu
Author | SHA1 | Date |
---|---|---|
![]() |
8692ed55c3 | 2 years ago |
![]() |
b94b4493e2 | 2 years ago |
![]() |
d7c57f06fa | 2 years ago |
![]() |
023f847b06 | 2 years ago |
![]() |
708c3308d5 | 2 years ago |
![]() |
01eebf9bc1 | 2 years ago |
![]() |
b1380d2d5a | 2 years ago |
![]() |
7b7eed885d | 2 years ago |
![]() |
c4fae28f43 | 2 years ago |
![]() |
87accaf7a2 | 2 years ago |
![]() |
21249c1b82 | 2 years ago |
![]() |
05288f089f | 2 years ago |
![]() |
a0652bb3d0 | 2 years ago |
![]() |
2c5b54d5ff | 2 years ago |
![]() |
fb83280c79 | 2 years ago |
![]() |
a4196fae1b | 2 years ago |
@ -0,0 +1,27 @@
|
|||||||
|
|
||||||
|
FILES_COMMITTED=$(git diff --name-only HEAD^)
|
||||||
|
IMAGES_COMMITTED=$(echo "$FILES_COMMITTED" | grep -E "^.*\.dockerfile$")
|
||||||
|
|
||||||
|
REPOSITORY="hub.codefirst.iut.uca.fr/maxime.batista/codefirst-docdeployer"
|
||||||
|
|
||||||
|
|
||||||
|
dockerd
|
||||||
|
|
||||||
|
push_image() ({
|
||||||
|
local IMAGE_NAME=$(basename "$1" | rev | cut -d . -f2- | rev)
|
||||||
|
cd "$(dirname "$1")"
|
||||||
|
|
||||||
|
|
||||||
|
docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD" "$REPOSITORY"
|
||||||
|
echo "Building $IMAGE_NAME..."
|
||||||
|
docker build -f "$(basename "$1")" .
|
||||||
|
docker tag "$IMAGE_NAME" "$REPOSITORY/$IMAGE_NAME:latest"
|
||||||
|
echo "Pushing $IMAGE_NAME..."
|
||||||
|
docker push "$REPOSITORY/$IMAGE_NAME"
|
||||||
|
})
|
||||||
|
|
||||||
|
echo $IMAGES_COMMITTED
|
||||||
|
|
||||||
|
for IMAGE in $IMAGES_COMMITTED; do
|
||||||
|
push_image "$IMAGE"
|
||||||
|
done
|
@ -1,11 +0,0 @@
|
|||||||
# syntax=override6/tbasket-end:latest
|
|
||||||
FROM ubuntu:latest
|
|
||||||
|
|
||||||
RUN apt update &&\
|
|
||||||
apt install openjdk-11-jdk openssh-client wget unzip curl -y &&\
|
|
||||||
wget https://services.gradle.org/distributions/gradle-7.5.1-bin.zip &&\
|
|
||||||
mkdir /opt/gradle &&\
|
|
||||||
unzip -d /opt/gradle gradle-7.5.1-bin.zip &&\
|
|
||||||
export GRADLE_HOME=/opt/gradle/gradle-7.5.1 && \
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,8 @@
|
|||||||
|
# syntax=override6/tbasket-end:latest
|
||||||
|
FROM ubuntu:latest
|
||||||
|
|
||||||
|
RUN apt update
|
||||||
|
RUN apt install openjdk-19-jdk -y
|
||||||
|
RUN apt install openssh-client curl wget -y
|
||||||
|
|
||||||
|
|
@ -1,44 +1,52 @@
|
|||||||
{
|
{
|
||||||
"results": [
|
"results": [
|
||||||
{
|
{
|
||||||
"name" : "org.tbasket.test.pages.LoginPageHandlerTests/\/login page handler/login situation tests/login with unknown account",
|
"name" : "Test Task name not available here/\/login page handler/login situation tests/login with unknown account",
|
||||||
"status" : "Success",
|
"status" : "Success",
|
||||||
"durationMillis" : "3408",
|
"durationMillis" : "4103",
|
||||||
"annotations" : "",
|
"annotations" : "",
|
||||||
"fullyQualifiedClassName" : "org.tbasket.test.pages.LoginPageHandlerTests",
|
"fullyQualifiedClassName" : "Test Task name not available here",
|
||||||
"labels" : ["\/login page handler", "login situation tests", "login with unknown account"]
|
"labels" : ["\/login page handler", "login situation tests", "login with unknown account"]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name" : "org.tbasket.test.pages.LoginPageHandlerTests/\/login page handler/erroned request body tests/with invalid json",
|
"name" : "Test Task name not available here/\/login page handler/login situation tests/login with known account",
|
||||||
"status" : "Success",
|
"status" : "Failure",
|
||||||
"durationMillis" : "2403",
|
"durationMillis" : "1",
|
||||||
"annotations" : "",
|
"annotations" : "",
|
||||||
"fullyQualifiedClassName" : "org.tbasket.test.pages.LoginPageHandlerTests",
|
"fullyQualifiedClassName" : "Test Task name not available here",
|
||||||
"labels" : ["\/login page handler", "erroned request body tests", "with invalid json"]
|
"labels" : ["\/login page handler", "login situation tests", "login with known account"]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name" : "org.tbasket.test.pages.LoginPageHandlerTests/\/login page handler/erroned request body tests/with no password attribute",
|
"name" : "Test Task name not available here/\/login page handler/erroned request body tests/with no password attribute",
|
||||||
"status" : "Success",
|
"status" : "Success",
|
||||||
"durationMillis" : "2406",
|
"durationMillis" : "2681",
|
||||||
"annotations" : "",
|
"annotations" : "",
|
||||||
"fullyQualifiedClassName" : "org.tbasket.test.pages.LoginPageHandlerTests",
|
"fullyQualifiedClassName" : "Test Task name not available here",
|
||||||
"labels" : ["\/login page handler", "erroned request body tests", "with no password attribute"]
|
"labels" : ["\/login page handler", "erroned request body tests", "with no password attribute"]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name" : "org.tbasket.test.pages.LoginPageHandlerTests/\/login page handler/erroned request body tests/with no mail attribute",
|
"name" : "Test Task name not available here/\/login page handler/erroned request body tests/empty packet",
|
||||||
"status" : "Success",
|
"status" : "Success",
|
||||||
"durationMillis" : "2412",
|
"durationMillis" : "2697",
|
||||||
"annotations" : "",
|
"annotations" : "",
|
||||||
"fullyQualifiedClassName" : "org.tbasket.test.pages.LoginPageHandlerTests",
|
"fullyQualifiedClassName" : "Test Task name not available here",
|
||||||
|
"labels" : ["\/login page handler", "erroned request body tests", "empty packet"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name" : "Test Task name not available here/\/login page handler/erroned request body tests/with no mail attribute",
|
||||||
|
"status" : "Success",
|
||||||
|
"durationMillis" : "2702",
|
||||||
|
"annotations" : "",
|
||||||
|
"fullyQualifiedClassName" : "Test Task name not available here",
|
||||||
"labels" : ["\/login page handler", "erroned request body tests", "with no mail attribute"]
|
"labels" : ["\/login page handler", "erroned request body tests", "with no mail attribute"]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name" : "org.tbasket.test.pages.LoginPageHandlerTests/\/login page handler/erroned request body tests/empty packet",
|
"name" : "Test Task name not available here/\/login page handler/erroned request body tests/with invalid json",
|
||||||
"status" : "Success",
|
"status" : "Success",
|
||||||
"durationMillis" : "2436",
|
"durationMillis" : "2717",
|
||||||
"annotations" : "",
|
"annotations" : "",
|
||||||
"fullyQualifiedClassName" : "org.tbasket.test.pages.LoginPageHandlerTests",
|
"fullyQualifiedClassName" : "Test Task name not available here",
|
||||||
"labels" : ["\/login page handler", "erroned request body tests", "empty packet"]
|
"labels" : ["\/login page handler", "erroned request body tests", "with invalid json"]
|
||||||
}
|
}
|
||||||
|
|
||||||
]
|
]
|
||||||
|
@ -0,0 +1,27 @@
|
|||||||
|
#!/usr/bin/bash
|
||||||
|
|
||||||
|
echo GENERATING TEMPORARY KEY PAIRS FOR TESTS
|
||||||
|
|
||||||
|
rm -r /tmp/keys &> /dev/null
|
||||||
|
mkdir -p /tmp/keys
|
||||||
|
cd /tmp/keys
|
||||||
|
keytool -genkey -noprompt \
|
||||||
|
-alias key \
|
||||||
|
-keyalg RSA \
|
||||||
|
-validity 2 \
|
||||||
|
-keystore test.keystore \
|
||||||
|
-storetype PKCS12 \
|
||||||
|
-dname "CN=x.y.com, OU=TB, O=TBA, L=dzqdz, S=dqzdzq, C=GB" \
|
||||||
|
-storepass 123456789 \
|
||||||
|
-keypass 123456789
|
||||||
|
|
||||||
|
keytool -noprompt -export \
|
||||||
|
-alias key \
|
||||||
|
-keystore test.keystore \
|
||||||
|
-rfc \
|
||||||
|
-file public.cert \
|
||||||
|
-keypass 123456789 \
|
||||||
|
-storepass 123456789
|
||||||
|
|
||||||
|
openssl pkcs12 -in test.keystore -nodes -nocerts -out private.pcks -passin pass:123456789
|
||||||
|
openssl pkcs12 -in test.keystore -nokeys -out public.cert -passin pass:123456789
|
@ -0,0 +1,3 @@
|
|||||||
|
INSERT INTO user
|
||||||
|
VALUES ('1daf7878-8ede-46ed-8b3e-120d37bf6819','maximebatista18@gmail.com', 'batista', 'maxime', 1450575459)
|
||||||
|
|
Reference in new issue