-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from dafyddj/chore/copier
chore: apply template `copier-packer-build` at `v1.0.0`
- Loading branch information
Showing
15 changed files
with
147 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY | ||
_commit: v1.0.0 | ||
_src_path: gh:dafyddj/copier-packer-build | ||
box_name: techneg/win81x64-pro-salt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"enabledManagers": [ | ||
"custom.regex", | ||
"git-submodules", | ||
], | ||
"extends": [ | ||
"config:recommended", | ||
], | ||
// `copier` template updates | ||
// There are two conditions that we need to account for | ||
// * a "clean" `.copier-answers.yml` file | ||
// * update needed but not yet applied (and further updates could appear in this condition) | ||
// `renovate` needs to be able to match both conditions for PRs to work properly | ||
// We make a hacky use of the otherwise unused field `currentDigest` to hold the current copier template version | ||
"customManagers": [ | ||
{ | ||
"customType": "regex", | ||
"fileMatch": ["^.copier-answers.yml$"], | ||
"matchStrings": [ | ||
"_commit: (?<currentValue>\\S+)\\n_src_path: gh:(?<depName>\\S+)\\n", | ||
"_commit: (?<currentDigest>\\S+) # __copier_update_needed (?<currentValue>\\S+)\\n_src_path: gh:(?<depName>\\S+)\\n", | ||
], | ||
"datasourceTemplate": "github-tags", | ||
"autoReplaceStringTemplate": "_commit: {{#if currentDigest}}{{{currentDigest}}}{{else}}{{{currentValue}}}{{/if}} # __copier_update_needed {{{newValue}}}\n_src_path: gh:{{{depName}}}\n", | ||
}, | ||
], | ||
"git-submodules": { | ||
"enabled": true | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,14 @@ | ||
/box/ | ||
/vms/ | ||
|
||
/floppy/_packer_config_local*.cmd | ||
/iso | ||
|
||
.snapshots/ | ||
.kitchen/ | ||
.vagrant/ | ||
packer_cache/ | ||
output-*/ | ||
packer_cache/ | ||
|
||
*.snapshot | ||
*.auto.pkrvars | ||
*.auto.pkrvars.hcl | ||
*.cat.pkr.hcl | ||
|
||
.snapshot | ||
serial.box | ||
Makefile.local | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
subdirs = boot install guestadd update provision export | ||
subdirs := $(shell cat stages) | ||
|
||
include $(addsuffix /Makefile,$(subdirs)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
driver: | ||
name: vagrant | ||
box_check_update: false | ||
ssh: | ||
insert_key: false | ||
<% if ENV.key?('TECHNEG_VAGRANT_PROVIDER') %> | ||
provider: <%= ENV['TECHNEG_VAGRANT_PROVIDER'] %> | ||
<% else %> | ||
provider: qemu | ||
<% end %> | ||
|
||
provisioner: | ||
name: dummy | ||
|
||
verifier: | ||
name: shell | ||
|
||
platforms: | ||
- name: windows | ||
driver: | ||
<% if ENV.key?('TECHNEG_VAGRANT_BOX') %> | ||
box: <%= ENV['TECHNEG_VAGRANT_BOX'] %> | ||
<% else %> | ||
box: techneg/win81x64-pro-salt | ||
<% end %> | ||
|
||
suites: | ||
- name: default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
win81 win10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
boot install guestadd update provision export |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
variable "arch" { | ||
type = string | ||
default = "x64" | ||
} | ||
|
||
variable "box_dir" { | ||
type = string | ||
default = "../box/virtualbox" | ||
} | ||
|
||
variable "cm" { | ||
type = string | ||
default = "nocm" | ||
} | ||
|
||
variable "cm_version" { | ||
type = string | ||
default = "" | ||
} | ||
|
||
variable "no_release" { | ||
type = bool | ||
default = true | ||
} | ||
|
||
variable "prefix" { | ||
type = string | ||
default = "test-" | ||
} | ||
|
||
variable "vagrant_cloud_org" { | ||
type = string | ||
default = "techneg" | ||
} | ||
|
||
variable "version" { | ||
type = string | ||
default = "0.0.1pre" | ||
} | ||
|
||
source "null" "upload" { | ||
communicator = "none" | ||
} | ||
|
||
build { | ||
name = "upload" | ||
|
||
source "null.upload" { | ||
name = "alpine318" | ||
} | ||
|
||
post-processors { | ||
post-processor "artifice" { | ||
files = [ "${var.box_dir}/${source.name}.box" ] | ||
} | ||
|
||
post-processor "vagrant-cloud" { | ||
box_tag = "${var.vagrant_cloud_org}/${var.prefix}${source.name}-x64-${var.cm}" | ||
version = "${var.version}" | ||
no_release = var.no_release | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.