From 0a7d977e180c55dc6d117ae1a1143a57e74bfed1 Mon Sep 17 00:00:00 2001 From: Tyler Date: Sun, 6 Mar 2022 16:21:45 -0500 Subject: [PATCH] Attempt S3 upload to TrueNAS server --- .drone.yml | 26 +++++++++++++++++++++++++- ubuntu/ubuntu-20.04-amd64.json | 2 +- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 0bb530d..85adc23 100644 --- a/.drone.yml +++ b/.drone.yml @@ -10,6 +10,18 @@ steps: - name: ubuntu commands: - packer build ubuntu/ubuntu-20.04-amd64.json + - name: upload + image: plugins/s3 + settings: + bucket: packer + source: build/*.img.gz + target: /build + 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 type: exec @@ -22,4 +34,16 @@ platform: steps: - name: debian commands: - - packer build debian/debian-11.2-amd64.json \ No newline at end of file + - packer build debian/debian-11.2-amd64.json + - name: upload + image: plugins/s3 + settings: + bucket: packer + source: build/*.img.gz + target: /build + 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 \ No newline at end of file diff --git a/ubuntu/ubuntu-20.04-amd64.json b/ubuntu/ubuntu-20.04-amd64.json index 0e599c5..1fca9ad 100644 --- a/ubuntu/ubuntu-20.04-amd64.json +++ b/ubuntu/ubuntu-20.04-amd64.json @@ -43,7 +43,7 @@ "post-processors": [ { "type": "compress", - "output": "{{.BuildName}}.gz" + "output": "{{ user `build_directory` }}/{{user `box_basename`}}.img.gz" } ], "provisioners": [