Skip to content

dreipol/github-actions

Repository files navigation

github-actions

Repository with github actions for the CI workflow

build

dreipol/github-actions/build@master

Builds a docker image with the commit sha as tag. If an image with the same tag already exists in the registry, it will use that image instead of building another one. Tries to use the docker cache from master, stage, branch to speed up the build.

Required env variables:

  • GCP_SERVICEACCOUNT_KEY
  • GCR_IMAGE
  • GITHUB_REF_SLUG
  • GITHUB_SHA
  • PROJECT_NAME

cleanup

dreipol/github-actions/cleanup@master

Deletes images from the google cloud registry older than 30 days that have 1 or less tags. This is intended to remove all images that only have their git hash as tag. Images that are tagged with the git hash and another tag (for example master) won't be deleted.

Required env variables:

  • GCP_SERVICEACCOUNT_KEY
  • GCR_IMAGE

codeclimate

dreipol/github-actions/codeclimate-env@master
dreipol/github-actions/codeclimate-coverage@master

Provides the codeclimate coverage tool. First you need to use codeclimate-env to inject the necessary environment variables for the codeclimate coverage tool. Then you can use the codeclimate-coverage action. You can find an example on how to use it here.

Required env variables:

  • CC_TEST_REPORTER_ID (only for codeclimate-coverage)

deploy

dreipol/github-actions/deploy@master

Pulls an image with the commit hash from the registry and pushes it to the openshift cluster.

Required env variables:

  • ASPECTRA_REGISTRY
  • ASPECTRA_TAG
  • DEPLOY_IMAGE
  • GCP_SERVICEACCOUNT_KEY
  • GCR_IMAGE
  • GITHUB_SHA
  • OPENSHIFT_TOKEN
  • OPENSHIFT_USER

deployment-status

dreipol/github-actions/deployment-status@master

Monitors the rollout of a deployment configuration. This is usually used after running the deploy action to monitor if the deployment from an imagestream succeeded.

Required env variables:

  • OPENSHIFT_HOST
  • OPENSHIFT_TOKEN
  • OPENSHIFT_USER
  • OPENSHIFT_PROJECT
  • DEPLOYMENT_CONFIG

deployment-status-reverse proxy

dreipol/github-actions/deployment-status@master

This one is specific to the reverse proxy, since it deplyos almost all projects, we want to make sure all the projects deploy ok before the job succeeds.

Required env variables:

  • OPENSHIFT_HOST
  • OPENSHIFT_TOKEN
  • OPENSHIFT_USER
  • OPENSHIFT_PROJECT

push

dreipol/github-actions/push@master

Pushes an image with the commit sha as tag to the google registry. Also tags it with the current branch name.

Required env variables:

  • GCP_SERVICEACCOUNT_KEY
  • GCR_IMAGE
  • GITHUB_REF_SLUG
  • GITHUB_SHA

set-logs-url

dreipol/github-actions/set-logs-url@master

Injects the url to the raw logs into the environment variables

Required env variables:

  • GITHUB_TOKEN
  • JOB_NAME

slack

dreipol/github-actions/slack@master

Sends a slack message with your defined text. Info: You can use slack@silent to log the messages instead of sending them to slack

Required env variables:

  • ENVIRONMENT
  • SLACK_WEBHOOK
  • TEXT

slugify

dreipol/github-actions/slugify@master

Creates slug names for branches so that we can use them as docker tags

Required env variables:

  • GITHUB_HEAD_REF
  • GITHUB_BASE_REF
  • GITHUB_REF
  • GITHUB_SHA

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •