Skip to content
This repository has been archived by the owner on Mar 24, 2022. It is now read-only.

add debian-10 #121

Merged
merged 1 commit into from
Aug 23, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .drone.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ local distros = [
{ display_name: 'CentOS 7', name: 'centos', version: '7', multiplier: 5 },
{ display_name: 'Debian 8', name: 'debian', version: '8', multiplier: 6 },
{ display_name: 'Debian 9', name: 'debian', version: '9', multiplier: 6 },
{ display_name: 'Debian 10', name: 'debian', version: '10', multiplier: 7 },
{ display_name: 'Fedora 29', name: 'fedora', version: '29', multiplier: 5 },
{ display_name: 'Fedora 30', name: 'fedora', version: '30', multiplier: 4 },
{ display_name: 'Opensuse 15', name: 'opensuse', version: '15', multiplier: 3 },
Expand Down
210 changes: 209 additions & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,16 @@ steps:
depends_on:
- clone

- name: Debian 10
image: hashicorp/packer
commands:
- apk --no-cache add --update python3
- pip3 install --upgrade pip
- pip3 install invoke
- inv build-aws --validate --distro=debian --distro-version=10
depends_on:
- clone

- name: Fedora 29
image: hashicorp/packer
commands:
Expand Down Expand Up @@ -1533,6 +1543,204 @@ trigger:
depends_on:
- Lint

---
kind: pipeline
name: Debian 10 (Staging)

platform:
os: linux
arch: amd64

steps:
- name: 2017.7
image: hashicorp/packer
commands:
- sh -c 'echo Sleeping 83 seconds; sleep 83'
- apk --no-cache add make curl grep gawk sed python3
- pip3 install --upgrade pip
- pip3 install invoke
- inv build-aws --staging --distro=debian --distro-version=10 --salt-branch=2017.7
environment:
AWS_ACCESS_KEY_ID:
from_secret: username
AWS_DEFAULT_REGION: us-west-2
AWS_SECRET_ACCESS_KEY:
from_secret: password
depends_on:
- clone

- name: 2018.3
image: hashicorp/packer
commands:
- sh -c 'echo Sleeping 249 seconds; sleep 249'
- apk --no-cache add make curl grep gawk sed python3
- pip3 install --upgrade pip
- pip3 install invoke
- inv build-aws --staging --distro=debian --distro-version=10 --salt-branch=2018.3
environment:
AWS_ACCESS_KEY_ID:
from_secret: username
AWS_DEFAULT_REGION: us-west-2
AWS_SECRET_ACCESS_KEY:
from_secret: password
depends_on:
- clone

- name: 2019.2
image: hashicorp/packer
commands:
- sh -c 'echo Sleeping 415 seconds; sleep 415'
- apk --no-cache add make curl grep gawk sed python3
- pip3 install --upgrade pip
- pip3 install invoke
- inv build-aws --staging --distro=debian --distro-version=10 --salt-branch=2019.2
environment:
AWS_ACCESS_KEY_ID:
from_secret: username
AWS_DEFAULT_REGION: us-west-2
AWS_SECRET_ACCESS_KEY:
from_secret: password
depends_on:
- clone

- name: neon
image: hashicorp/packer
commands:
- sh -c 'echo Sleeping 581 seconds; sleep 581'
- apk --no-cache add make curl grep gawk sed python3
- pip3 install --upgrade pip
- pip3 install invoke
- inv build-aws --staging --distro=debian --distro-version=10 --salt-branch=neon
environment:
AWS_ACCESS_KEY_ID:
from_secret: username
AWS_DEFAULT_REGION: us-west-2
AWS_SECRET_ACCESS_KEY:
from_secret: password
depends_on:
- clone

- name: develop
image: hashicorp/packer
commands:
- sh -c 'echo Sleeping 747 seconds; sleep 747'
- apk --no-cache add make curl grep gawk sed python3
- pip3 install --upgrade pip
- pip3 install invoke
- inv build-aws --staging --distro=debian --distro-version=10 --salt-branch=develop
environment:
AWS_ACCESS_KEY_ID:
from_secret: username
AWS_DEFAULT_REGION: us-west-2
AWS_SECRET_ACCESS_KEY:
from_secret: password
depends_on:
- clone

- name: delete-old-2017.7-amis
image: alpine
commands:
- apk --no-cache add --update python3 jq
- pip3 install --upgrade pip
- pip3 install -r requirements/py3.6/base.txt
- cat 2017.7-manifest.json | jq
- export name_filter=$(cat 2017.7-manifest.json | jq -r ".builds[].custom_data.ami_name")
- "echo \"Name Filter: $name_filter\""
- inv cleanup-aws --region=$AWS_DEFAULT_REGION --name-filter=$name_filter --assume-yes --num-to-keep=1
environment:
AWS_ACCESS_KEY_ID:
from_secret: username
AWS_DEFAULT_REGION: us-west-2
AWS_SECRET_ACCESS_KEY:
from_secret: password
depends_on:
- 2017.7

- name: delete-old-2018.3-amis
image: alpine
commands:
- apk --no-cache add --update python3 jq
- pip3 install --upgrade pip
- pip3 install -r requirements/py3.6/base.txt
- cat 2018.3-manifest.json | jq
- export name_filter=$(cat 2018.3-manifest.json | jq -r ".builds[].custom_data.ami_name")
- "echo \"Name Filter: $name_filter\""
- inv cleanup-aws --region=$AWS_DEFAULT_REGION --name-filter=$name_filter --assume-yes --num-to-keep=1
environment:
AWS_ACCESS_KEY_ID:
from_secret: username
AWS_DEFAULT_REGION: us-west-2
AWS_SECRET_ACCESS_KEY:
from_secret: password
depends_on:
- 2018.3

- name: delete-old-2019.2-amis
image: alpine
commands:
- apk --no-cache add --update python3 jq
- pip3 install --upgrade pip
- pip3 install -r requirements/py3.6/base.txt
- cat 2019.2-manifest.json | jq
- export name_filter=$(cat 2019.2-manifest.json | jq -r ".builds[].custom_data.ami_name")
- "echo \"Name Filter: $name_filter\""
- inv cleanup-aws --region=$AWS_DEFAULT_REGION --name-filter=$name_filter --assume-yes --num-to-keep=1
environment:
AWS_ACCESS_KEY_ID:
from_secret: username
AWS_DEFAULT_REGION: us-west-2
AWS_SECRET_ACCESS_KEY:
from_secret: password
depends_on:
- 2019.2

- name: delete-old-neon-amis
image: alpine
commands:
- apk --no-cache add --update python3 jq
- pip3 install --upgrade pip
- pip3 install -r requirements/py3.6/base.txt
- cat neon-manifest.json | jq
- export name_filter=$(cat neon-manifest.json | jq -r ".builds[].custom_data.ami_name")
- "echo \"Name Filter: $name_filter\""
- inv cleanup-aws --region=$AWS_DEFAULT_REGION --name-filter=$name_filter --assume-yes --num-to-keep=1
environment:
AWS_ACCESS_KEY_ID:
from_secret: username
AWS_DEFAULT_REGION: us-west-2
AWS_SECRET_ACCESS_KEY:
from_secret: password
depends_on:
- neon

- name: delete-old-develop-amis
image: alpine
commands:
- apk --no-cache add --update python3 jq
- pip3 install --upgrade pip
- pip3 install -r requirements/py3.6/base.txt
- cat develop-manifest.json | jq
- export name_filter=$(cat develop-manifest.json | jq -r ".builds[].custom_data.ami_name")
- "echo \"Name Filter: $name_filter\""
- inv cleanup-aws --region=$AWS_DEFAULT_REGION --name-filter=$name_filter --assume-yes --num-to-keep=1
environment:
AWS_ACCESS_KEY_ID:
from_secret: username
AWS_DEFAULT_REGION: us-west-2
AWS_SECRET_ACCESS_KEY:
from_secret: password
depends_on:
- develop

trigger:
branch:
- ci
event:
- push

depends_on:
- Lint

---
kind: pipeline
name: Fedora 29 (Staging)
Expand Down Expand Up @@ -2921,6 +3129,6 @@ depends_on:

---
kind: signature
hmac: e96f3d54e9e2593ade191e2203631c3853a8e039301e4e7a040e75568ac49c0d
hmac: 545e3ed27c08340ada71c6e054f22b2867c050ba70d1edd4680bed734641d11a

...
17 changes: 17 additions & 0 deletions AWS/debian/debian-10-us-west-2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"_comment": "Build with `packer build -var-file=debian-10-us-west-2.json debian.json`",
"ssh_username": "admin",
"aws_region": "us-west-2",
"device_name": "xvda",
"os_name": "Debian",
"os_version": "10",
"bootstrap_args": "-qX",
"bootstrap_version": "2018.3.4",
"salt_branch": "develop",
"state_name": "git.minimal",
"ami_name_prefix": "saltstack",
"ami_name_suffix": "debian/buster.10",
"instance_type": "m5.large",
"build_type": "ci",
"source_build_type": "base"
}