3
0

added fg logo and improved drone.yml
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Mike Sutton 2023-03-25 17:13:59 +01:00
parent 7db4cf31d9
commit 0499617ec1
2 changed files with 23 additions and 14 deletions

View File

@ -16,11 +16,11 @@ volumes:
steps:
- name: notify_start
image: plugins/slack
image: appleboy/drone-telegram
settings:
webhook: https://team.wizewerx.tech/hooks/5eq841fropn3prt4kzgoaoprgr
channel: builds
template: >
token: 6138074869:AAHQcUundL70GMUZH-AVala4Ej8dKNGLim4
to: 1558971280
message: >
{{uppercase repo.name}}:{{uppercase build.branch}}:{{build.number}} CI build started
- name: deploy
image: wizewerx/wizewerx-docker-compose
@ -32,25 +32,27 @@ steps:
from_secret: registryLogins
commands:
- mkdir -p "/root/.docker" && echo $DOCKER_AUTH_CONFIG > "/root/.docker/config.json"
- pwd
- export BUILD_TARGET=wizewerx/${DRONE_REPO_NAME}
- docker build -t $BUILD_TARGET .
- export BUILD_TARGET=wizewerx/${DRONE_REPO_NAME}:${DRONE_COMMIT_BRANCH}
- export PULL_IMAGE=`docker manifest inspect $BUILD_TARGET > /dev/null;echo $?`
- if [[ "$PULL_IMAGE" -eq 0 ]]; then docker pull $BUILD_TARGET ;fi
- echo ${DRONE_COMMIT_SHA} > ./version.txt
- docker build --cache-from $BUILD_TARGET --build-arg GEM_CACHE=$BUILD_TARGET -f ./docker/Dockerfile -t $BUILD_TARGET .
- docker push $BUILD_TARGET
trigger:
when:
branch:
- master
- production
- name: notify_end
image: plugins/slack
image: appleboy/drone-telegram
settings:
webhook: https://team.wizewerx.tech/hooks/5eq841fropn3prt4kzgoaoprgr
channel: builds
username: mike
template: >
token: 6138074869:AAHQcUundL70GMUZH-AVala4Ej8dKNGLim4
to: 1558971280
message: >
{{uppercase repo.name}}:{{uppercase build.branch}}:{{build.number}}{{#success build.status}} succeeded. Good job. {{else}} failed. FIX THE BUILD!!!.{{/success}}
Build took {{since build.started}}
when:
status: [ success, failure ]
trigger:
branch:
- master
- production

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 16 KiB