I’m just getting started with Concourse as I’ve inherited it from a previous employee. I re-worked a staging pipeline that was broken. It’s fixed now and deploys a release candidate to our staging cluster. I’ve spent a few days trying to add production deployment job to the pipeline but haven’t had much luck.
Once the stage-deploy job is complete and passes, I’d like to kick off a prod-deploy job that would then deploy the passed release candidate image to the prod cluster. I’m not sure if Concourse has the ability to create a PR for a stage to prod merge and upon merge > deploy to the prod cluster.
Here is a portion from my pipeline.yml config that takes inputs and deploys to the staging cluster. Can somebody help me out here and help me create the production job that would create a PR, upon merge > deploy to production?
- name: stage-deploy serial: true serial_groups: [rc-test] plan: - aggregate: - get: staging-code trigger: true passed: [integration-tests] - get: rc-image trigger: true passed: [integration-tests] params: save: true passed: [integration-tests] params: save: true - get: service-version trigger: true passed: [integration-tests] params: bump: final - aggregate: - put: rc-image params: load: rc-image tag: service-version/version tag_as_latest: true - get: k8s-version - task: bump-service-git config: platform: linux image_resource: type: docker-image source: aws_access_key_id: ((aws-access-key-id)) aws_secret_access_key: ((aws-secret-access-key)) repository: 123456789.dkr.ecr.us-blah-blah.amazonaws.com/yq tag: latest inputs: - name: service-version - name: k8s-version outputs: - name: bumped-k8s-final params: APP_NAME: the-staging-service VERSION_FILE: service-version/version DOCKER_REPO: 123456789.dkr.ecr.us-blah-blah.amazonaws.com/the-staging-service DEPLOYMENTS_YAML: the-staging-service/deployment.yml SOURCE_DIR: k8s-version DESTINATION_DIR: bumped-k8s-final run: user: root path: k8s-version/blah/blah/bump-deployment-git.sh - task: apply config: platform: linux image_resource: type: docker-image source: aws_access_key_id: ((aws-access-key-id)) aws_secret_access_key: ((aws-secret-access-key)) repository: 123456789.dkr.ecr.us-blah-blah.amazonaws.com/kubectl-tools tag: '1.2.3' inputs: - name: bumped-k8s-final params: KUBECTL_CONFIG_FILE: ((kube-config)) run: user: root path: sh args: - -ec - | set -e echo "$KUBECTL_CONFIG_FILE" > kubectl-config kubectl --kubeconfig kubectl-config apply -f bumped-k8s-final/stage/the-staging-service/deployment.yml -f bumped-k8s-final/stage/the-staging-service/service.yml kubectl --kubeconfig kubectl-config stage-deploy status -f bumped-k8s-final/stage/the-staging-service/deployment.yml