This commit is contained in:
@@ -21,8 +21,8 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- export DOCKER_BUILDKIT=1
|
- export DOCKER_BUILDKIT=1
|
||||||
- docker buildx create --use --driver docker-container || true
|
- docker buildx create --use --driver docker-container || true
|
||||||
- echo "$GITEA_TOKEN" | docker login 192.168.1.9:3000 -u "$GITEA_USERNAME" --password-stdin
|
- echo "$GITEA_TOKEN" | docker login gitea.zcz.se -u "$GITEA_USERNAME" --password-stdin
|
||||||
- docker buildx build --builder default --tag 192.168.1.9:3000/tai/aberwyn/aberwyn:latest --tag 192.168.1.9:3000/tai/aberwyn/aberwyn:${DRONE_COMMIT_SHA:0:7} --cache-from=type=registry,ref=192.168.1.9:3000/tai/aberwyn/aberwyn:buildcache --push -f Aberwyn/Dockerfile .
|
- docker buildx build --builder default --tag gitea.zcz.se/tai/aberwyn/aberwyn:latest --tag gitea.zcz.se/tai/aberwyn/aberwyn:${DRONE_COMMIT_SHA:0:7} --cache-from=type=registry,ref=gitea.zcz.se/tai/aberwyn/aberwyn:buildcache --push -f Aberwyn/Dockerfile .
|
||||||
|
|
||||||
- name: notify-result
|
- name: notify-result
|
||||||
image: alpine
|
image: alpine
|
||||||
@@ -34,7 +34,7 @@ steps:
|
|||||||
- apk add --no-cache curl
|
- apk add --no-cache curl
|
||||||
- |
|
- |
|
||||||
if [ "$DRONE_BUILD_STATUS" = "success" ]; then
|
if [ "$DRONE_BUILD_STATUS" = "success" ]; then
|
||||||
curl -X POST http://192.168.1.196:8123/api/webhook/aberwyn_update_success
|
curl -X POST https://ha.zcz.se/api/webhook/aberwyn_update_success
|
||||||
else
|
else
|
||||||
curl -X POST http://192.168.1.196:8123/api/webhook/aberwyn_update_failed
|
curl -X POST https://ha.zcz.se/api/webhook/aberwyn_update_failed
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user