Re-add upload step
Some checks failed
continuous-integration/woodpecker the build failed

This commit is contained in:
Hamcha 2021-11-06 02:19:44 +01:00
parent ee5bd442c3
commit 72e86f13ed
Signed by: hamcha
GPG key ID: 1669C533B8CF6D89

View file

@ -8,7 +8,7 @@ pipeline:
image: node image: node
commands: commands:
- export SUBPATH=/tghandbook/${DRONE_COMMIT_BRANCH/\//_}-${DRONE_COMMIT_SHA:0:8} - export SUBPATH=/tghandbook/${DRONE_COMMIT_BRANCH/\//_}-${DRONE_COMMIT_SHA:0:8}
- export REVISION=$DRONE_COMMIT_SHA - export REVISION=${DRONE_COMMIT_SHA}
- yarn build - yarn build
group: build group: build
@ -16,7 +16,7 @@ pipeline:
image: node image: node
commands: commands:
- export SUBPATH=/tghandbook/pr-$${DRONE_PULL_REQUEST} - export SUBPATH=/tghandbook/pr-$${DRONE_PULL_REQUEST}
- export REVISION=$DRONE_COMMIT_SHA - export REVISION=${DRONE_COMMIT_SHA}
- yarn build - yarn build
environment: environment:
- OUTDIR=./dist-pr - OUTDIR=./dist-pr
@ -35,45 +35,46 @@ pipeline:
when: when:
event: push event: push
group: build group: build
# upload_build_versioned:
# image: woodpeckerci/plugin-s3 upload_build_versioned:
# bucket: tghandbook image: woodpeckerci/plugin-s3
# secrets: [minio_access, minio_secret] bucket: tghandbook
# access_key: $minio_access secrets: [minio_access, minio_secret]
# secret_key: $minio_secret access_key: $minio_access
# source: dist/**/* secret_key: $minio_secret
# target: /${DRONE_COMMIT_BRANCH/\//_}-${DRONE_COMMIT_SHA:0:8}/ source: dist/**/*
# strip_prefix: dist/ target: /${DRONE_COMMIT_BRANCH/\//_}-${DRONE_COMMIT_SHA:0:8}/
# path_style: true strip_prefix: dist/
# endpoint: https://artifacts.fromouter.space path_style: true
# when: endpoint: https://artifacts.fromouter.space
# event: push when:
# group: upload event: push
# group: upload
# upload_build_pr:
# image: woodpeckerci/plugin-s3 upload_build_pr:
# bucket: tghandbook image: woodpeckerci/plugin-s3
# secrets: [minio_access, minio_secret] bucket: tghandbook
# access_key: $minio_access secrets: [minio_access, minio_secret]
# secret_key: $minio_secret access_key: $minio_access
# source: dist-pr/**/* secret_key: $minio_secret
# target: /pr-${DRONE_PULL_REQUEST}/ source: dist-pr/**/*
# strip_prefix: dist-pr/ target: /pr-${DRONE_PULL_REQUEST}/
# path_style: true strip_prefix: dist-pr/
# endpoint: https://artifacts.fromouter.space path_style: true
# when: endpoint: https://artifacts.fromouter.space
# event: pull_request when:
# group: upload event: pull_request
# group: upload
# upload_build_branch:
# image: woodpeckerci/plugin-s3 upload_build_branch:
# bucket: tghandbook image: woodpeckerci/plugin-s3
# secrets: [minio_access, minio_secret] bucket: tghandbook
# access_key: $minio_access secrets: [minio_access, minio_secret]
# secret_key: $minio_secret access_key: $minio_access
# source: dist-branch/**/* secret_key: $minio_secret
# target: /${DRONE_COMMIT_BRANCH/\//_}/ source: dist-branch/**/*
# strip_prefix: dist-branch/ target: /${DRONE_COMMIT_BRANCH/\//_}/
# path_style: true strip_prefix: dist-branch/
# endpoint: https://artifacts.fromouter.space path_style: true
# group: upload endpoint: https://artifacts.fromouter.space
group: upload