Added CI resources
This commit is contained in:
21
concourse/prepare-deployment-resources.yaml
Normal file
21
concourse/prepare-deployment-resources.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
platform: linux
|
||||
|
||||
image_resource:
|
||||
type: registry-image
|
||||
source:
|
||||
repository: alpine
|
||||
|
||||
inputs:
|
||||
- name: project-src
|
||||
path: .
|
||||
|
||||
outputs:
|
||||
- name: deploy-confs
|
||||
|
||||
run:
|
||||
path: sh
|
||||
args:
|
||||
- -exc
|
||||
- |
|
||||
VERSION=$( cat commit.sha )
|
||||
sed "s/IMAGE_TAG/$VERSION/g" k8s/deployments.yaml >> deploy-confs/prod.yaml
|
||||
Reference in New Issue
Block a user