respec
This commit is contained in:
parent
8238cb2d52
commit
ba7f204761
3 changed files with 9 additions and 2 deletions
2
.albatros
Executable file
2
.albatros
Executable file
|
@ -0,0 +1,2 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
go build
|
|
@ -13,6 +13,9 @@ we might do it in Albatros...
|
||||||
|
|
||||||
## Deploy
|
## Deploy
|
||||||
|
|
||||||
|
Requirements: Nomad, Consul
|
||||||
|
Optional: Gitea
|
||||||
|
|
||||||
```
|
```
|
||||||
nomad namespace apply -description "Continuous Integration" ci
|
nomad namespace apply -description "Continuous Integration" ci
|
||||||
nomad run hcl/builder.hcl
|
nomad run hcl/builder.hcl
|
||||||
|
|
|
@ -7,7 +7,7 @@ job "builder" {
|
||||||
|
|
||||||
parameterized {
|
parameterized {
|
||||||
payload = "forbidden"
|
payload = "forbidden"
|
||||||
meta_required = [ "REPO_URL", "COMMIT", "BRANCH" ]
|
meta_required = [ "REPO_URL", "COMMIT", "BRANCH", "FLAVOR" ]
|
||||||
}
|
}
|
||||||
|
|
||||||
reschedule {
|
reschedule {
|
||||||
|
@ -39,7 +39,9 @@ git fetch origin ${NOMAD_META_COMMIT}
|
||||||
git checkout ${NOMAD_META_COMMIT} -b ${NOMAD_META_BRANCH}
|
git checkout ${NOMAD_META_COMMIT} -b ${NOMAD_META_BRANCH}
|
||||||
export COMMIT=${NOMAD_META_COMMIT}
|
export COMMIT=${NOMAD_META_COMMIT}
|
||||||
export BRANCH=${NOMAD_META_BRANCH}
|
export BRANCH=${NOMAD_META_BRANCH}
|
||||||
./build.sh
|
export REPO_URL=${NOMAD_META_REPO_URL}
|
||||||
|
export FLAVOR=${NOMAD_META_FLAVOR}
|
||||||
|
./.albatros
|
||||||
|
|
||||||
EOH
|
EOH
|
||||||
destination = "local/builder.sh"
|
destination = "local/builder.sh"
|
||||||
|
|
Loading…
Reference in a new issue