first commit
This commit is contained in:
25
.woodpecker.yml
Normal file
25
.woodpecker.yml
Normal file
@@ -0,0 +1,25 @@
|
||||
steps:
|
||||
- name: build-and-push
|
||||
image: woodpeckerci/plugin-docker-buildx
|
||||
settings:
|
||||
repo: "registry.af-east-1.dc.koldsoftware.com/${CI_REPO_OWNER}/nodejs-app"
|
||||
registry: "registry.af-east-1.dc.koldsoftware.com"
|
||||
tags:
|
||||
- "${CI_COMMIT_SHA:0:8}"
|
||||
- latest
|
||||
username:
|
||||
from_secret: registry_username
|
||||
password:
|
||||
from_secret: registry_password
|
||||
|
||||
- name: deploy
|
||||
image: hashicorp/nomad:latest
|
||||
commands:
|
||||
- nomad job run
|
||||
-var="version=${CI_COMMIT_SHA:0:8}"
|
||||
-var="domain=af-east-1.dc.koldsoftware.com"
|
||||
job.hcl
|
||||
environment:
|
||||
NOMAD_ADDR: "http://192.168.2.106:4646"
|
||||
when:
|
||||
branch: main
|
||||
Reference in New Issue
Block a user