Skip to content

Instantly share code, notes, and snippets.

@osterman
Created May 2, 2020 16:36
Show Gist options
  • Save osterman/112f1edfabfa859b5cc340ad0e237f0f to your computer and use it in GitHub Desktop.
Save osterman/112f1edfabfa859b5cc340ad0e237f0f to your computer and use it in GitHub Desktop.
Codefresh Validation Step
validate:
title: "Validate"
description: "Ensure build parameters are present"
stage: Prepare
image: cloudposse/geodesic:0.116.0
entry_point: /etc/codefresh/require_vars
cmd:
- |-
${{GITHUB_REPO_STATUS_TOKEN}} Personal Access Token used to give scripts
permission to update the "status check" status on GitHub pull requests
- ${{SLACK_WEBHOOK_URL}} Secret URL used by scripts to send updates to a Slack channel
- |-
${{AWS_DOCKER_REPO_HOST}} The host hame portion of the ECR Docker repo to use.
Typically something like 123456789012.dkr.ecr.us-east-1.amazonaws.com
- |-
${{CF_PULL_REQUEST_NUMBER}} The PR number from GitHub.
The PR number is only set if this build was triggered in relation to a PR.
Requiring this to be present means requiring this pipeline to only work with PRs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment