Skip to content

Commit

Permalink
ci-cd WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenaldinger committed Dec 16, 2019
1 parent 9e01066 commit a148654
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
13 changes: 10 additions & 3 deletions build/ci/drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,29 @@ workspace:
base: /go
path: src/github.com/stevenaldinger/decker
steps:
- name: packer
- name: packer-kali
image: appleboy/drone-packer
template: build/package/raspberry-pi-arm-builder/packer.json
actions:
- validate
- build

- name: upload ovf file
- name: upload-ovf-file
image: plugins/gcs
settings:
source: build/package/raspberry-pi-arm-builder/output-virtualbox-iso/packer-virtualbox-iso-*.ovf
source: build/package/raspberry-pi-arm-builder/output-virtualbox-iso/kali-linux-iso.ovf
target: decker/kali-linux-2019-4-amd64-iso/
acl: allUsers:READER
token:
from_secret: google-cloud-gcs-sa

- name: packer-raspberry
image: appleboy/drone-packer
template: build/package/raspberry-pi-arm-builder/packer.rpi.json
actions:
- validate
- build

- name: build-minimal
image: plugins/docker
settings:
Expand Down
1 change: 1 addition & 0 deletions build/package/raspberry-pi-arm-builder/packer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"builders": [
{
"type": "virtualbox-iso",
"vm_name": "kali-linux-iso",
"guest_os_type": "Debian_64",
"iso_url": "https://storage.googleapis.com/decker/kali-linux-2019-4-amd64-iso/kali-linux-2019.4-amd64.iso",
"iso_checksum": "bad0d602a531b872575e23cc025b45fee475523b51378a035928b733ca395ac5",
Expand Down
2 changes: 1 addition & 1 deletion build/package/raspberry-pi-arm-builder/packer.rpi.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"builders": [
{
"type": "virtualbox-ovf",
"source_path": "output-virtualbox-iso/packer-virtualbox-iso-1576466517.ovf",
"source_path": "output-virtualbox-iso/kali-linux-iso.ovf",
"ssh_username": "root",
"ssh_password": "toor",
"ssh_port": 22,
Expand Down

0 comments on commit a148654

Please sign in to comment.