Compare commits

...
This repository has been archived on 2022-05-10. You can view files and clone it, but cannot push or open issues or pull requests.

11 Commits

Author SHA1 Message Date
Hamcha 42e5ac64a3
.....................
continuous-integration/woodpecker the build failed Details
2021-11-17 16:53:54 +01:00
Hamcha 17f3efae15
AAAAAAAAAAA p2
continuous-integration/woodpecker the build failed Details
2021-11-17 16:50:58 +01:00
Hamcha 20319285e6
LAST EDIT 2021-11-17 16:49:36 +01:00
Hamcha 9fa3dc834a
DOES THIS WORK????
continuous-integration/woodpecker the build failed Details
2021-11-17 16:47:39 +01:00
Hamcha ba9bb0bce5
wbnow
continuous-integration/woodpecker the build failed Details
2021-11-17 16:44:59 +01:00
Hamcha a3cff17506
BASTA BERE
continuous-integration/woodpecker the build was successful Details
2021-11-17 16:44:06 +01:00
Hamcha 75c3c867b4
aaaaa
continuous-integration/woodpecker the build failed Details
2021-11-17 16:42:28 +01:00
Hamcha ae12eaa6a0
Use more envy
continuous-integration/woodpecker the build failed Details
2021-11-17 16:35:38 +01:00
Hamcha 72e86f13ed
Re-add upload step
continuous-integration/woodpecker the build failed Details
2021-11-06 02:19:44 +01:00
Hamcha ee5bd442c3
hello i am mr dumb
continuous-integration/woodpecker the build was successful Details
2021-11-06 02:16:46 +01:00
Hamcha e50f8eb411
CI FUCKERY TIME
continuous-integration/woodpecker the build failed Details
2021-11-06 01:18:53 +01:00
3 changed files with 95 additions and 148 deletions

View File

@ -1,148 +0,0 @@
---
kind: pipeline
name: default
steps:
- name: restore-cache
image: drillster/drone-volume-cache
volumes:
- name: cache
path: /cache
settings:
restore: true
mount:
- ./node_modules
- name: dependencies
image: node
failure: ignore
commands:
- yarn
depends_on:
- restore-cache
- name: lint
image: node
commands:
- yarn lint
depends_on:
- dependencies
- name: build_versioned
image: node
commands:
- yarn build
environment:
SUBPATH: /tghandbook/${DRONE_COMMIT_BRANCH/\//_}-${DRONE_COMMIT_SHA:0:8}
REVISION: ${DRONE_COMMIT_SHA}
when:
event:
- push
depends_on:
- dependencies
- name: build_pr
image: node
commands:
- yarn build
environment:
SUBPATH: /tghandbook/pr-${DRONE_PULL_REQUEST}
OUTDIR: ./dist-pr
REVISION: ${DRONE_COMMIT_SHA}
when:
event:
- pull_request
depends_on:
- dependencies
- name: build_branch
image: node
commands:
- yarn build
environment:
SUBPATH: /tghandbook/${DRONE_COMMIT_BRANCH/\//_}
OUTDIR: ./dist-branch
REVISION: ${DRONE_COMMIT_SHA}
when:
event:
- push
depends_on:
- dependencies
- name: upload_build_versioned
image: plugins/s3
settings:
bucket: tghandbook
access_key:
from_secret: minio_access
secret_key:
from_secret: minio_secret
source: dist/**/*
target: /${DRONE_COMMIT_BRANCH/\//_}-${DRONE_COMMIT_SHA:0:8}/
strip_prefix: dist/
path_style: true
endpoint: https://artifacts.fromouter.space
when:
event:
- push
depends_on:
- build_versioned
- name: upload_build_pr
image: plugins/s3
settings:
bucket: tghandbook
access_key:
from_secret: minio_access
secret_key:
from_secret: minio_secret
source: dist-pr/**/*
target: /pr-${DRONE_PULL_REQUEST}/
strip_prefix: dist-pr/
path_style: true
endpoint: https://artifacts.fromouter.space
when:
event:
- pull_request
depends_on:
- build_pr
- name: upload_build_branch
image: plugins/s3
settings:
bucket: tghandbook
access_key:
from_secret: minio_access
secret_key:
from_secret: minio_secret
source: dist-branch/**/*
target: /${DRONE_COMMIT_BRANCH/\//_}/
strip_prefix: dist-branch/
path_style: true
endpoint: https://artifacts.fromouter.space
when:
event:
- push
depends_on:
- build_branch
- name: rebuild-cache
image: drillster/drone-volume-cache
failure: ignore
volumes:
- name: cache
path: /cache
settings:
rebuild: true
mount:
- ./node_modules
depends_on:
- dependencies
volumes:
- name: cache
host:
path: /opt/gitea/drone-cache/hamcha/tghandbook
---
kind: signature
hmac: 55dfd5c47c79e51394c5cdfaa9b98a6f6acd84e751e92964c202ac19b46c0373

86
.woodpecker/build.yml Normal file
View File

@ -0,0 +1,86 @@
pipeline:
dependencies:
image: node
commands:
- yarn
build_versioned:
image: node
commands:
- export SUBPATH=/tghandbook/${DRONE_COMMIT_BRANCH/\//_}-${DRONE_COMMIT_SHA:0:8}
- export REVISION=${DRONE_COMMIT_SHA}
- yarn build
group: build
build_pr:
image: node
commands:
- export SUBPATH=/tghandbook/pr-$${DRONE_PULL_REQUEST}
- export REVISION=${DRONE_COMMIT_SHA}
- yarn build
environment:
- OUTDIR=./dist-pr
when:
event: pull_request
group: build
build_branch:
image: node
commands:
- export SUBPATH=/tghandbook/${DRONE_COMMIT_BRANCH/\//_}
- export REVISION=${DRONE_COMMIT_SHA}
- yarn build
environment:
- OUTDIR=./dist-branch
when:
event: push
group: build
upload_build_versioned:
image: woodpeckerci/plugin-s3
secrets: [minio_access, minio_secret]
settings:
bucket: tghandbook
source: ./dist/**/*
target: /${DRONE_COMMIT_BRANCH/\//_}-${DRONE_COMMIT_SHA:0:8}/
strip_prefix: dist/
path_style: true
endpoint: https://artifacts.fromouter.space
environment:
AWS_ACCESS_KEY_ID: $MINIO_ACCESS
AWS_SECRET_ACCESS_KEY: $MINIO_SECRET
when:
event: push
group: upload
upload_build_pr:
image: woodpeckerci/plugin-s3
secrets: [minio_access, minio_secret]
settings:
bucket: tghandbook
source: ./dist-pr/**/*
target: /pr-${DRONE_PULL_REQUEST}/
strip_prefix: dist-pr/
path_style: true
endpoint: https://artifacts.fromouter.space
environment:
AWS_ACCESS_KEY_ID: $MINIO_ACCESS
AWS_SECRET_ACCESS_KEY: $MINIO_SECRET
when:
event: pull_request
group: upload
upload_build_branch:
image: woodpeckerci/plugin-s3
secrets: [minio_access, minio_secret]
settings:
bucket: tghandbook
source: ./dist-branch/**/*
target: /${DRONE_COMMIT_BRANCH/\//_}/
strip_prefix: dist-branch/
path_style: true
endpoint: https://artifacts.fromouter.space
environment:
AWS_ACCESS_KEY_ID: $MINIO_ACCESS
AWS_SECRET_ACCESS_KEY: $MINIO_SECRET
group: upload

9
.woodpecker/lint.yml Normal file
View File

@ -0,0 +1,9 @@
pipeline:
dependencies:
image: node
commands:
- yarn
lint:
image: node
commands:
- yarn lint