diff --git a/.woodpecker/deploy.yml b/.woodpecker/deploy.yml index 9b5945e..4e0a38b 100644 --- a/.woodpecker/deploy.yml +++ b/.woodpecker/deploy.yml @@ -6,11 +6,27 @@ depends_on: - ci steps: - deploy: - image: alpine:latest - environment: - DEPLOY_URL: - from_secret: COOLIFY_DEPLOY_WEBHOOK - commands: - - apk add --no-cache curl - - curl -X POST "$${DEPLOY_URL}" + build-latest-container: + image: woodpeckerci/plugin-docker-buildx:6.0.3 + settings: + registry: codeberg.org + username: ${CI_REPO_OWNER} + password: + from_secret: CONTAINER_REGISTRY_TOKEN + repo: codeberg.org/jasterv/spazio-solazzo + dockerfile: "Dockerfile" + tags: sha-${CI_COMMIT_SHA},latest + + # deploy: + # image: alpine:latest + # environment: + # DEPLOY_URL: + # from_secret: COOLIFY_DEPLOY_WEBHOOK + # DEPLOY_TOKEN: + # from_secret: COOLIFY_DEPLOY_API_TOKEN + # commands: + # - apk add --no-cache curl + # - | + # curl --request GET "$${DEPLOY_URL}" \ + # --header "Authorization: Bearer $${DEPLOY_TOKEN}" \ + # --header "Content-Type: application/json"