Add S3 uploading
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
0a7d977e18
commit
d8793a4f80
36
.drone.yml
36
.drone.yml
|
@ -10,18 +10,12 @@ steps:
|
||||||
- name: ubuntu
|
- name: ubuntu
|
||||||
commands:
|
commands:
|
||||||
- packer build ubuntu/ubuntu-20.04-amd64.json
|
- packer build ubuntu/ubuntu-20.04-amd64.json
|
||||||
- name: upload
|
- s3cmd --access_key=$ACCESS_KEY --secret-key=$SECRET_KEY --host=192.168.1.11:9000 --host-bucket=192.168.1.11:9000 put builds/debian-11.2.img.gz s3://packer
|
||||||
image: plugins/s3
|
environment:
|
||||||
settings:
|
ACCESS_KEY:
|
||||||
bucket: packer
|
from_secret: aws_access_key_id
|
||||||
source: build/*.img.gz
|
SECRET_KEY:
|
||||||
target: /build
|
from-secret: aws_secret_access_key
|
||||||
path_style: true
|
|
||||||
endpoint: http://192.168.1.11:9000
|
|
||||||
access_key:
|
|
||||||
from_secret: aws_access_key_id
|
|
||||||
secret_key:
|
|
||||||
from_secret: aws_secret_access_key
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: exec
|
type: exec
|
||||||
|
@ -35,15 +29,9 @@ steps:
|
||||||
- name: debian
|
- name: debian
|
||||||
commands:
|
commands:
|
||||||
- packer build debian/debian-11.2-amd64.json
|
- packer build debian/debian-11.2-amd64.json
|
||||||
- name: upload
|
- s3cmd --access_key=$ACCESS_KEY --secret-key=$SECRET_KEY --host=192.168.1.11:9000 --host-bucket=192.168.1.11:9000 put builds/debian-11.2.img.gz s3://packer
|
||||||
image: plugins/s3
|
environment:
|
||||||
settings:
|
ACCESS_KEY:
|
||||||
bucket: packer
|
from_secret: aws_access_key_id
|
||||||
source: build/*.img.gz
|
SECRET_KEY:
|
||||||
target: /build
|
from-secret: aws_secret_access_key
|
||||||
path_style: true
|
|
||||||
endpoint: http://192.168.1.11:9000
|
|
||||||
access_key:
|
|
||||||
from_secret: aws_access_key_id
|
|
||||||
secret_key:
|
|
||||||
from_secret: aws_secret_access_key
|
|
||||||
|
|
Loading…
Reference in New Issue