golifehk/concourse/prepare-deployment-resources.yaml

22 lines
325 B
YAML
Raw Normal View History

2022-09-14 15:21:27 +00:00
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