Push frontend releases to a different bucket
This commit is contained in:
parent
4b96ba4290
commit
6acc9c2a91
1 changed files with 17 additions and 8 deletions
25
.drone.yml
25
.drone.yml
|
@ -24,21 +24,31 @@ pipeline:
|
||||||
pull: true
|
pull: true
|
||||||
commands:
|
commands:
|
||||||
- cd dist
|
- cd dist
|
||||||
- zip -r ../vikunja-frontend.zip *
|
- zip -r ../vikunja-frontend-${DRONE_TAG##v}.zip *
|
||||||
- cd ..
|
- cd ..
|
||||||
when:
|
when:
|
||||||
event: [tag, push]
|
event: [tag]
|
||||||
|
|
||||||
|
static:
|
||||||
|
image: karalabe/xgo-latest:latest
|
||||||
|
pull: true
|
||||||
|
commands:
|
||||||
|
- cd dist
|
||||||
|
- zip -r ../vikunja-frontend-master.zip *
|
||||||
|
- cd ..
|
||||||
|
when:
|
||||||
|
event: [push]
|
||||||
|
branch: [ master ]
|
||||||
|
|
||||||
# Push the releases to our pseudo-s3-bucket
|
# Push the releases to our pseudo-s3-bucket
|
||||||
release:
|
release:
|
||||||
image: plugins/s3:1
|
image: plugins/s3:1
|
||||||
pull: true
|
pull: true
|
||||||
secrets: [ aws_access_key_id, aws_secret_access_key ]
|
secrets: [ aws_access_key_id, aws_secret_access_key ]
|
||||||
bucket: vikunja
|
bucket: vikunja-frontend
|
||||||
endpoint: https://storage.kolaente.de
|
endpoint: https://storage.kolaente.de
|
||||||
path_style: true
|
path_style: true
|
||||||
source: vikunja-frontend.zip
|
source: vikunja-frontend-${DRONE_TAG##v}.zip
|
||||||
target: /${DRONE_TAG##v}
|
|
||||||
when:
|
when:
|
||||||
event: [ tag ]
|
event: [ tag ]
|
||||||
|
|
||||||
|
@ -46,11 +56,10 @@ pipeline:
|
||||||
image: plugins/s3:1
|
image: plugins/s3:1
|
||||||
pull: true
|
pull: true
|
||||||
secrets: [ aws_access_key_id, aws_secret_access_key ]
|
secrets: [ aws_access_key_id, aws_secret_access_key ]
|
||||||
bucket: vikunja
|
bucket: vikunja-frontend
|
||||||
endpoint: https://storage.kolaente.de
|
endpoint: https://storage.kolaente.de
|
||||||
path_style: true
|
path_style: true
|
||||||
source: vikunja-frontend.zip
|
source: vikunja-frontend-master.zip
|
||||||
target: /master
|
|
||||||
when:
|
when:
|
||||||
event: [ push ]
|
event: [ push ]
|
||||||
branch: [ master ]
|
branch: [ master ]
|
||||||
|
|
Loading…
Reference in a new issue