-
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 #1 from dafyddj/ci/github-actions
ci: run a build in Github Actions
- Loading branch information
Showing
52 changed files
with
736 additions
and
452 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,12 @@ | ||
name: Packer Build | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
packer-build: | ||
runs-on: macos-10.15 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Packer Build | ||
run: packer build -only=virtualbox-iso -var-file=tkl150-core.json -var "version=2021.3.23" -except=publish,manifest,shell-local tkl.json |
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 |
---|---|---|
|
@@ -9,6 +9,9 @@ tmp | |
*.swp | ||
Makefile.local | ||
box/ | ||
builds/ | ||
|
||
.DS_Store | ||
.tmpatlas/ | ||
.kitchen/ | ||
.kitchen.local.yml |
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,46 @@ | ||
stages: | ||
- validate | ||
- build | ||
- publish | ||
|
||
before_script: | ||
- export VER_DATE=$(date +%Y.%-m) && echo $VER_DATE | ||
- packer --version | ||
- VBoxManage --version | ||
- vagrant --version | ||
- kitchen --version | ||
- bundle install | ||
|
||
variables: | ||
PACKER_ARGS: -only=virtualbox-iso -var-file=tkl150-core.json tkl.json | ||
|
||
validate: | ||
stage: validate | ||
image: | ||
name: hashicorp/packer | ||
entrypoint: | ||
- '/usr/bin/env' | ||
- 'PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' | ||
before_script: | ||
- packer --version | ||
script: | ||
- packer validate -except=upload $PACKER_ARGS | ||
|
||
build: | ||
stage: build | ||
except: | ||
- master | ||
tags: | ||
- virtualbox | ||
script: | ||
- packer build -except=publish -var "version=$VER_DATE.$CI_PIPELINE_IID" $PACKER_ARGS | ||
|
||
publish: | ||
stage: publish | ||
only: | ||
- master | ||
when: manual | ||
tags: | ||
- virtualbox | ||
script: | ||
- packer build -var "version=$VER_DATE.$CI_PIPELINE_IID" $PACKER_ARGS |
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,3 @@ | ||
source "https://rubygems.org" | ||
|
||
gem "kitchen-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,71 @@ | ||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
builder (3.2.3) | ||
erubis (2.7.0) | ||
ffi (1.10.0) | ||
gssapi (1.2.0) | ||
ffi (>= 1.0.1) | ||
gyoku (1.3.1) | ||
builder (>= 2.1.2) | ||
hashie (3.6.0) | ||
httpclient (2.8.3) | ||
kitchen-salt (0.5.0) | ||
hashie (>= 3.5) | ||
test-kitchen (~> 1.4) | ||
little-plugger (1.1.4) | ||
logging (2.2.2) | ||
little-plugger (~> 1.1) | ||
multi_json (~> 1.10) | ||
mixlib-install (3.11.11) | ||
mixlib-shellout | ||
mixlib-versioning | ||
thor | ||
mixlib-shellout (2.4.4) | ||
mixlib-versioning (1.2.7) | ||
multi_json (1.13.1) | ||
net-scp (1.2.1) | ||
net-ssh (>= 2.6.5) | ||
net-ssh (4.2.0) | ||
net-ssh-gateway (1.3.0) | ||
net-ssh (>= 2.6.5) | ||
nori (2.6.0) | ||
rubyntlm (0.6.2) | ||
rubyzip (1.2.2) | ||
test-kitchen (1.24.0) | ||
mixlib-install (~> 3.6) | ||
mixlib-shellout (>= 1.2, < 3.0) | ||
net-scp (~> 1.1) | ||
net-ssh (>= 2.9, < 5.0) | ||
net-ssh-gateway (~> 1.2) | ||
thor (~> 0.19) | ||
winrm (~> 2.0) | ||
winrm-elevated (~> 1.0) | ||
winrm-fs (~> 1.1) | ||
thor (0.20.3) | ||
winrm (2.3.1) | ||
builder (>= 2.1.2) | ||
erubis (~> 2.7) | ||
gssapi (~> 1.2) | ||
gyoku (~> 1.0) | ||
httpclient (~> 2.2, >= 2.2.0.2) | ||
logging (>= 1.6.1, < 3.0) | ||
nori (~> 2.0) | ||
rubyntlm (~> 0.6.0, >= 0.6.1) | ||
winrm-elevated (1.1.1) | ||
winrm (~> 2.0) | ||
winrm-fs (~> 1.0) | ||
winrm-fs (1.3.2) | ||
erubis (~> 2.7) | ||
logging (>= 1.6.1, < 3.0) | ||
rubyzip (~> 1.1) | ||
winrm (~> 2.0) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
kitchen-salt | ||
|
||
BUNDLED WITH | ||
1.17.3 |
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
Oops, something went wrong.