Change the image used for the Docker image build
continuous-integration/drone/push Build is failing Details

master
Clément FRÉVILLE 1 year ago
parent 965904ede8
commit 9b64489097

@ -6,41 +6,8 @@ trigger:
- push
steps:
- name: sonar
image: sonarsource/sonar-scanner-cli:5
commands:
- sonar-scanner -Dsonar.projectKey=drone-health-clfreville2 -Dsonar.sources=. -Dsonar.login=$${PLUGIN_SONAR_TOKEN} -Dsonar.host.url=$${PLUGIN_SONAR_HOST} -Dsonar.php.coverage.reportPaths=coverage.xml
settings:
sonar_host:
from_secret: sonar_host
sonar_token:
from_secret: sonar_token
- name: rewrite-urls
image: busybox:latest
commands:
- find . -type f -exec sed -i -r "s@(href|src)=\"/@\1=\"$${PLUGIN_CONTAINER_PATH}@g" {} +
settings:
container_path: /containers/clementfreville2-drone-health/
- name: docker-build-and-push
image: plugins/docker
settings:
dockerfile: docker/Dockerfile
context: .
registry: hub.codefirst.iut.uca.fr
repo: hub.codefirst.iut.uca.fr/clement.freville2/drone-health
username:
from_secret: SECRET_REGISTRY_USERNAME
password:
from_secret: SECRET_REGISTRY_PASSWORD
mirror: https://proxy.iut.uca.fr:8443
depends_on:
- rewrite-urls
- name: docker-build-and-push-without-mirror
image: plugins/docker
failure: ignore
image: hub.codefirst.iut.uca.fr/clement.freville2/plugins/kaniko:latest
settings:
dockerfile: docker/Dockerfile
context: .
@ -50,8 +17,7 @@ steps:
from_secret: SECRET_REGISTRY_USERNAME
password:
from_secret: SECRET_REGISTRY_PASSWORD
depends_on:
- rewrite-urls
registry_mirrors: proxy.iut.uca.fr:8443
- name: deploy-container
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest

Loading…
Cancel
Save