AstroJS/concourse/prepare-deployment-resources.yaml

24 lines
397 B
YAML

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 )
cat k8s/configmap.yaml >> deploy-confs/prod.yaml
echo "---"
sed "s/IMAGE_TAG/$VERSION/g" k8s/deployments.yaml >> deploy-confs/prod.yaml