Skip to content

Collection of github actions for the GETProtocol codebase

Notifications You must be signed in to change notification settings

GETProtocolLab/workflows

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 

Repository files navigation

Description

Repository for general workflows in the getprotocolab repo that handles CI/CD tasks

How to use

cd (cd_pr/cd_push)

The CD workflows will build and deploy your repo to the guts argocd clusters. It will also preview your k8s changes when making a PR to the deploy branches.

This workflows only works if your repo includes a Dockerfile, has been included in the k8seks argocd apps and contains a ./deploy kustomize directory with k8s config.

To use the CD workflows include them in your repository like this.

on:
  push:
  pull_request:

jobs:
  pr_workflow:
    concurrency:
      group: ${{ github.ref }}
      cancel-in-progress: true
    if: github.event_name == 'pull_request'
    uses: GETProtocolLab/workflows/.github/workflows/cd_pr.yml@master
    secrets: inherit

  push_workflow:
    if: github.event_name == 'push'
    uses: GETProtocolLab/workflows/.github/workflows/cd_push.yml@master
    secrets: inherit
    with:
      image: ghcr.io/getprotocollab/{{ your_repo }}
      argocd_app_name: { { your_argocd_app_name } }

Lint

docker run --rm -v $(pwd):/work tmknom/prettier --write .

About

Collection of github actions for the GETProtocol codebase

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •