Use minio client instead of s3cmd
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Tyler 2022-03-06 18:40:26 -05:00
parent c03d928fa0
commit b30eddd4e8
1 changed files with 14 additions and 10 deletions

View File

@ -10,12 +10,14 @@ steps:
- name: ubuntu
commands:
- packer build ubuntu/ubuntu-20.04-amd64.json
- s3cmd --access_key=$ACCESS_KEY --secret_key=$SECRET_KEY --host=192.168.1.11:9000 --host-bucket=192.168.1.11:9000 put builds/*.img.gz s3://packer
- wget -O mc https://dl.min.io/client/mc/release/linux-amd64/mc && chmod +x mc
- ./mc cp builds/*.img.gz STORAGE/$MC_BUCKET
- rm -f mc
environment:
ACCESS_KEY:
from_secret: aws_access_key_id
SECRET_KEY:
from-secret: aws_secret_access_key
MC_HOST_STORAGE:
from_secret: s3_url
MC_BUCKET:
from_secret: s3_bucket
---
kind: pipeline
type: exec
@ -29,9 +31,11 @@ steps:
- name: debian
commands:
- packer build debian/debian-11.2-amd64.json
- s3cmd --access_key=$ACCESS_KEY --secret_key=$SECRET_KEY --host=192.168.1.11:9000 --host-bucket=192.168.1.11:9000 put builds/*.img.gz s3://packer
- wget -O mc https://dl.min.io/client/mc/release/linux-amd64/mc && chmod +x mc
- ./mc cp builds/*.img.gz STORAGE/$MC_BUCKET
- rm -f mc
environment:
ACCESS_KEY:
from_secret: aws_access_key_id
SECRET_KEY:
from-secret: aws_secret_access_key
MC_HOST_STORAGE:
from_secret: s3_url
MC_BUCKET:
from_secret: s3_bucket