diff --git a/.woodpecker.yml b/.woodpecker.yml index 0f2fa27..e449dac 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -15,7 +15,7 @@ steps: repo: registry.coolify1.workaround.org/debshots driver: docker cache_from: 'type=registry\\,ref=registry.coolify1.workaround.org/debshots:buildcache' - cache_to: 'type=registry,ref=registry.coolify1.workaround.org/debshots:buildcache,mode=max' + cache_to: 'type=registry\\,ref=registry.coolify1.workaround.org/debshots:buildcache,mode=max' dockerfile: Dockerfile username: from_secret: REGISTRY_USER @@ -31,6 +31,9 @@ steps: deploy-to-stage: image: curlimages/curl:latest + when: + - event: push + - event: manual environment: # Key: The name in your script ($COOLIFY_STAGE_DEPLOY_TOKEN) # Value: The name of the secret in Woodpecker's UI @@ -40,6 +43,6 @@ steps: from_secret: COOLIFY_STAGE_DEPLOY_WEBHOOK commands: - | - curl -H "Authorization: Bearer ${COOLIFY_STAGE_DEPLOY_TOKEN}" \ + curl -H "Authorization: Bearer $$COOLIFY_STAGE_DEPLOY_TOKEN" \ -X POST \ - "${COOLIFY_STAGE_DEPLOY_WEBHOOK}" + "$$COOLIFY_STAGE_DEPLOY_WEBHOOK"