Commit 6551e890 authored by Sascha Pfeiffer's avatar Sascha Pfeiffer

added Security Scanning

Signed-off-by: default avatarSascha Pfeiffer <sascha.pfeiffer@psono.com>
parent cc264574
......@@ -105,7 +105,7 @@ webclient:
paths:
- ./*
job-release-docker:
release-docker:
except:
- schedules
stage: release
......@@ -121,7 +121,18 @@ job-release-docker:
only:
- /^v[0-9]*\.[0-9]*\.[0-9]*$/
job-deploy:
deploy-security-scan-image:
except:
- schedules
stage: deploy
image: docker:git
services:
- docker:dind
script:
- sh ./var/deploy_security_scan_image.sh
deploy:
except:
- schedules
stage: deploy
......@@ -136,7 +147,8 @@ job-deploy:
only:
- /^v[0-9]*\.[0-9]*\.[0-9]*$/
job-deploy-chrome:
deploy-chrome:
except:
- schedules
stage: deploy
......@@ -151,7 +163,7 @@ job-deploy-chrome:
only:
- /^v[0-9]*\.[0-9]*\.[0-9]*$/
job-deploy-firefox:
deploy-firefox:
except:
- schedules
stage: deploy
......
#!/usr/bin/env bash
# Pull docker container here, as the login will be overwritten in the next step
docker pull $CONTAINER_TEST_IMAGE
# Deploy to Docker Hub
mkdir -p /root/.docker
cat > /root/.docker/config.json <<- "EOF"
{
"auths": {
"https://index.docker.io/v1/": {
"auth": "docker_hub_credentials"
}
}
}
EOF
sed -i 's/docker_hub_credentials/'"$docker_hub_credentials"'/g' /root/.docker/config.json
docker tag $CONTAINER_TEST_IMAGE psono/security-scans:psono-client-ce-$CI_BUILD_REF_NAME
docker push psono/security-scans:psono-client-ce-$CI_BUILD_REF_NAME
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment