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 - name: ubuntu
commands: commands:
- packer build ubuntu/ubuntu-20.04-amd64.json - 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: environment:
ACCESS_KEY: MC_HOST_STORAGE:
from_secret: aws_access_key_id from_secret: s3_url
SECRET_KEY: MC_BUCKET:
from-secret: aws_secret_access_key from_secret: s3_bucket
--- ---
kind: pipeline kind: pipeline
type: exec type: exec
@ -29,9 +31,11 @@ steps:
- name: debian - name: debian
commands: commands:
- packer build debian/debian-11.2-amd64.json - 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: environment:
ACCESS_KEY: MC_HOST_STORAGE:
from_secret: aws_access_key_id from_secret: s3_url
SECRET_KEY: MC_BUCKET:
from-secret: aws_secret_access_key from_secret: s3_bucket