mirror of
https://github.com/thegeeklab/hugo-geekblog.git
synced 2024-11-22 05:00:39 +00:00
ci: remove insecure pr steps that requires secrets (#413)
This commit is contained in:
parent
a611955251
commit
09dfc3a974
40
.drone.yml
40
.drone.yml
@ -51,40 +51,6 @@ steps:
|
|||||||
environment:
|
environment:
|
||||||
LHCI_SERVER_URL: https://drone-artifact.rknet.org/${DRONE_REPO_NAME}/
|
LHCI_SERVER_URL: https://drone-artifact.rknet.org/${DRONE_REPO_NAME}/
|
||||||
|
|
||||||
- name: page-validation-upload
|
|
||||||
image: thegeeklab/drone-s3-sync:2
|
|
||||||
settings:
|
|
||||||
access_key:
|
|
||||||
from_secret: s3_access_key
|
|
||||||
bucket: drone-artifact
|
|
||||||
endpoint: https://sp.rknet.org
|
|
||||||
path_style: true
|
|
||||||
secret_key:
|
|
||||||
from_secret: s3_secret_access_key
|
|
||||||
source: lhci_reports/dist/
|
|
||||||
strip_prefix: lhci_reports/dist/
|
|
||||||
target: /${DRONE_REPO_NAME}
|
|
||||||
when:
|
|
||||||
status:
|
|
||||||
- failure
|
|
||||||
- success
|
|
||||||
|
|
||||||
- name: page-validation-link
|
|
||||||
image: thegeeklab/drone-github-comment
|
|
||||||
settings:
|
|
||||||
api_key:
|
|
||||||
from_secret: github_token
|
|
||||||
key: pr-${DRONE_PULL_REQUEST}
|
|
||||||
message: lhci_reports/dist/summary.md
|
|
||||||
skip_missing: true
|
|
||||||
update: true
|
|
||||||
when:
|
|
||||||
ref:
|
|
||||||
- refs/pull/**
|
|
||||||
status:
|
|
||||||
- failure
|
|
||||||
- success
|
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
ref:
|
ref:
|
||||||
- refs/heads/main
|
- refs/heads/main
|
||||||
@ -285,9 +251,3 @@ depends_on:
|
|||||||
- test
|
- test
|
||||||
- build
|
- build
|
||||||
- docs
|
- docs
|
||||||
|
|
||||||
---
|
|
||||||
kind: signature
|
|
||||||
hmac: 59e767e0d55732ab76e896fa9324f67726c85b87f7dd9869f6eafb9bd05fee7f
|
|
||||||
|
|
||||||
...
|
|
||||||
|
Loading…
Reference in New Issue
Block a user