From 28e2b4004239302e5645f4d1738de73dcbf8ed2e Mon Sep 17 00:00:00 2001 From: Johannes Loher Date: Wed, 21 Jun 2023 20:15:19 +0200 Subject: [PATCH] ci: test gitea --- .woodpecker/publish.yml | 72 ++++++++++++++++++++--------------------- .woodpecker/release.yml | 2 +- 2 files changed, 37 insertions(+), 37 deletions(-) diff --git a/.woodpecker/publish.yml b/.woodpecker/publish.yml index b60f8f1..6a26367 100644 --- a/.woodpecker/publish.yml +++ b/.woodpecker/publish.yml @@ -31,9 +31,9 @@ steps: - apk update - apk add zip curl - zip -r ${CI_REPO_NAME}.zip ${CI_REPO_NAME}/* - - export CI_FORGE_API_URL=${CI_FORGE_URL}/api/v4 - - 'curl --fail --header "Authorization: Bearer $${FORGE_TOKEN}" --upload-file ${CI_REPO_NAME}.zip "$${CI_FORGE_API_URL}/projects/${CI_REPO_REMOTE_ID}/packages/generic/${CI_REPO_NAME}/${CI_COMMIT_TAG}/${CI_REPO_NAME}.zip"' - - 'curl --fail --header "Authorization: Bearer $${FORGE_TOKEN}" --upload-file ${CI_REPO_NAME}/$${PACKAGE_TYPE}.json "$${CI_FORGE_API_URL}/projects/${CI_REPO_REMOTE_ID}/packages/generic/${CI_REPO_NAME}/${CI_COMMIT_TAG}/$${PACKAGE_TYPE}.json"' + - export CI_FORGE_API_URL=${CI_FORGE_URL}/api + - 'curl --fail --header "Authorization: token $${FORGE_TOKEN}" --upload-file ${CI_REPO_NAME}.zip "$${CI_FORGE_API_URL}/packages/${CI_REPO_OWNER}/generic/${CI_REPO_NAME}/${CI_COMMIT_TAG}/${CI_REPO_NAME}.zip"' + - 'curl --fail --header "Authorization: token $${FORGE_TOKEN}" --upload-file ${CI_REPO_NAME}/$${PACKAGE_TYPE}.json "$${CI_FORGE_API_URL}/packages/${CI_REPO_OWNER}/generic/${CI_REPO_NAME}/${CI_COMMIT_TAG}/$${PACKAGE_TYPE}.json"' secrets: - forge_token - package_type @@ -42,36 +42,36 @@ steps: image: *node_image commands: - yarn changelog - release: - image: registry.gitlab.com/gitlab-org/release-cli:latest - commands: - - export CI_FORGE_API_URL=${CI_FORGE_URL}/api/v4 - - | - release-cli \ - --server-url ${CI_FORGE_URL} \ - --private-token $${FORGE_TOKEN} \ - --project-id ${CI_REPO_REMOTE_ID} \ - create \ - --name ${CI_COMMIT_TAG} \ - --description CHANGELOG.md \ - --tag-name ${CI_COMMIT_TAG} \ - --assets-link "[\ - {\"name\": \"${CI_REPO_NAME}.zip\", \"url\": \"$${CI_FORGE_API_URL}/projects/${CI_REPO_REMOTE_ID}/packages/generic/${CI_REPO_NAME}/${CI_COMMIT_TAG}/${CI_REPO_NAME}.zip\", \"filepath\": \"/${CI_REPO_NAME}.zip\", \"link_type\": \"package\"},\ - {\"name\": \"$${PACKAGE_TYPE}.json\", \"url\": \"$${CI_FORGE_API_URL}/projects/${CI_REPO_REMOTE_ID}/packages/generic/${CI_REPO_NAME}/${CI_COMMIT_TAG}/$${PACKAGE_TYPE}.json\", \"filepath\": \"/$${PACKAGE_TYPE}.json\", \"link_type\": \"other\"}\ - ]" - secrets: - - forge_token - - package_type - publish-to-foundry-admin: - image: johannesloher/foundry-publish - environment: - FVTT_DELETE_OBSOLETE_VERSIONS: 'true' - commands: - - export FVTT_MANIFEST_PATH=${CI_REPO_NAME}/$${PACKAGE_TYPE}.json - - export FVTT_MANIFEST_URL=${CI_REPO_URL}/-/releases/${CI_COMMIT_TAG}/downlaods/$${PACKAGE_TYPE}.json - - foundry-publish - secrets: - - fvtt_package_id - - fvtt_username - - fvtt_password - - package_type + # release: + # image: registry.gitlab.com/gitlab-org/release-cli:latest + # commands: + # - export CI_FORGE_API_URL=${CI_FORGE_URL}/api/v4 + # - | + # release-cli \ + # --server-url ${CI_FORGE_URL} \ + # --private-token $${FORGE_TOKEN} \ + # --project-id ${CI_REPO_REMOTE_ID} \ + # create \ + # --name ${CI_COMMIT_TAG} \ + # --description CHANGELOG.md \ + # --tag-name ${CI_COMMIT_TAG} \ + # --assets-link "[\ + # {\"name\": \"${CI_REPO_NAME}.zip\", \"url\": \"$${CI_FORGE_API_URL}/projects/${CI_REPO_REMOTE_ID}/packages/generic/${CI_REPO_NAME}/${CI_COMMIT_TAG}/${CI_REPO_NAME}.zip\", \"filepath\": \"/${CI_REPO_NAME}.zip\", \"link_type\": \"package\"},\ + # {\"name\": \"$${PACKAGE_TYPE}.json\", \"url\": \"$${CI_FORGE_API_URL}/projects/${CI_REPO_REMOTE_ID}/packages/generic/${CI_REPO_NAME}/${CI_COMMIT_TAG}/$${PACKAGE_TYPE}.json\", \"filepath\": \"/$${PACKAGE_TYPE}.json\", \"link_type\": \"other\"}\ + # ]" + # secrets: + # - forge_token + # - package_type + # publish-to-foundry-admin: + # image: johannesloher/foundry-publish + # environment: + # FVTT_DELETE_OBSOLETE_VERSIONS: 'true' + # commands: + # - export FVTT_MANIFEST_PATH=${CI_REPO_NAME}/$${PACKAGE_TYPE}.json + # - export FVTT_MANIFEST_URL=${CI_REPO_URL}/-/releases/${CI_COMMIT_TAG}/downlaods/$${PACKAGE_TYPE}.json + # - foundry-publish + # secrets: + # - fvtt_package_id + # - fvtt_username + # - fvtt_password + # - package_type diff --git a/.woodpecker/release.yml b/.woodpecker/release.yml index 830b494..c4dbcd5 100644 --- a/.woodpecker/release.yml +++ b/.woodpecker/release.yml @@ -7,7 +7,7 @@ variables: when: event: manual - branch: ${CI_REPO_DEFAULT_BRANCH} + branch: git2-test # ${CI_REPO_DEFAULT_BRANCH} depends_on: - checks