This commit is contained in:
Quentin 2023-03-15 10:16:49 +01:00
parent 8238cb2d52
commit ba7f204761
Signed by: quentin
GPG key ID: E9602264D639FF68
3 changed files with 9 additions and 2 deletions

2
.albatros Executable file
View file

@ -0,0 +1,2 @@
#!/usr/bin/env bash
go build

View file

@ -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

View file

@ -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"