From 691b7ff2daf082f152cb78560c181383eea9b26a Mon Sep 17 00:00:00 2001 From: Charles Click Date: Tue, 8 Oct 2024 00:09:44 -0400 Subject: [PATCH] Maybe this time --- .woodpecker.yml | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 642743f..42817ed 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -10,6 +10,8 @@ steps: from_secret: REGISTRY_USERNAME TOKEN: from_secret: DOCKER_TOKEN + volumes: + - /var/run/docker.sock:/var/run/docker.sock commands: - cd Alpine/Python - docker login -u $USERNAME -p $TOKEN git.vertinext.com @@ -22,6 +24,8 @@ steps: - event: [ push, pull_request, tag, release ] - path: include: [ 'DockerImages/Alpine/Muddler/Dockerfile' ] + volumes: + - /var/run/docker.sock:/var/run/docker.sock environment: USERNAME: from_secret: REGISTRY_USERNAME @@ -39,6 +43,8 @@ steps: - event: [ push, pull_request, tag, release ] - path: include: [ 'DockerImages/Alphine/Web/Dockerfile' ] + volumes: + - /var/run/docker.sock:/var/run/docker.sock environment: USERNAME: from_secret: REGISTRY_USERNAME @@ -51,35 +57,29 @@ steps: - docker push git.vertinext.com/roryejinn/Alpine_Web:latest - name: notify-on-failure - image: alpine + image: codeberg.org/l-x/woodpecker-ntfy when: - status: [ failure ] - environment: - TOKEN: + settings: + url: https://gotify.vertinext.com/woodpecker + token: from_secret: GOTIFY_TOKEN - commands: - - apk add curl - - >- - curl -H "Authorization: Bearer $TOKEN" - -H "Title: ${CI} - ${CI_REPO_NAME}" - -H "Tag: warning" - -H "Actions: http, Open Build, ${CI_PIPLINE_URL}, clear=true" - -d "Failed to build docker images." - gotify.vertinext.com/woodpecker + title: ${CI} - ${CI_REPO_NAME} + actions: "http, Open Build, ${CI_PIPELINE_URL}, clear=true" + tags: warning + icon: https://woodpecker-ci.org/img/logo.svg + message: Failed to build docker images. - name: notify-on-success - image: alpine + image: codeberg.org/l-x/woodpecker-ntfy when: - status: [ success ] - environment: - TOKEN: + settings: + url: https://gotify.vertinext.com/woodpecker + token: from_secret: GOTIFY_TOKEN - commands: - - apk add curl - - >- - curl -H "Authorization: Bearer $TOKEN" - -H "Title: ${CI} - ${CI_REPO_NAME}" - -H "Tag: package" - -H "Actions: http, Open Build, ${CI_PIPLINE_URL}, clear=true" - -d "Docker images rebuilt and pushed to the container repository." - gotify.vertinext.com/woodpecker + title: ${CI} - ${CI_REPO_NAME} + actions: "http, Open Build, ${CI_PIPELINE_URL}, clear=true" + tags: whale + icon: https://woodpecker-ci.org/img/logo.svg + message: Rebuilt docker images and pushed to image repository.