Developers workflow (pre-trunk-based)
- Cloud Runners
- Self-Hosted Runners
1. In your pre-trunk-based branch, create a YAML file named .github/workflows/github-ci.yaml with the following content:
.github/workflows/github-ci.yaml
###################################################################################################
############################# ShamanOps pipeline | GitHub Actions #################################
###################################################################################################
name: ShamanOps
on:
workflow_dispatch:
push:
branches: [ "pre-trunk-based" ]
jobs:
shamanops:
uses: shamanops/resources/.github/workflows/pretrunk-base.yaml@main
with:
# Project
projectName: 'examples'
# Pre-trunk sets
exposeEnabled: 'true'
appInternalPort: '80'
#-------------------------------------------------------------------------------------------------#
## Features -------------------------------------------------------------------------------------#
appDaysToLive: '0'
#-------------------------------------------------------------------------------------------------#
secrets:
shamanops_customer_token: ${{ secrets.shamanops_customer_token }}
shamanops_argocd_dev_token: ${{ secrets.shamanops_argocd_dev_token }}
shamanops_manifest_repository_token: ${{ secrets.shamanops_manifest_repository_token }}
shamanops_chat_webhook: ${{ secrets.shamanops_chat_webhook }}
shamanops_registry_password: ${{ secrets.shamanops_registry_password }}
shamanops_dockerfile_token: ${{ secrets.shamanops_dockerfile_token }}
##################################################################################################
info
By default, pre-trunk-based applications are configured to not be deleted.
To define how many days the application should live, you must modify the field appDaysToLive in Features section.
2. Commit and Enjoy! ✨
1. In your pre-trunk-based branch, create a YAML file named .github/workflows/github-ci.yaml with the following content:
.github/workflows/github-ci.yaml
###################################################################################################
############################# ShamanOps pipeline | GitHub Actions #################################
###################################################################################################
name: ShamanOps
on:
workflow_dispatch:
push:
branches: [ "pre-trunk-based" ]
jobs:
shamanops:
uses: shamanops/resources/.github/workflows/pretrunk-base.yaml@main
with:
# Runner type
runs_on: 'self-hosted'
# Project
projectName: 'examples'
# Pre-trunk sets
exposeEnabled: 'true'
appInternalPort: '80'
#-------------------------------------------------------------------------------------------------#
## Features -------------------------------------------------------------------------------------#
appDaysToLive: '0'
#-------------------------------------------------------------------------------------------------#
secrets:
shamanops_customer_token: ${{ secrets.shamanops_customer_token }}
shamanops_argocd_dev_token: ${{ secrets.shamanops_argocd_dev_token }}
shamanops_manifest_repository_token: ${{ secrets.shamanops_manifest_repository_token }}
shamanops_chat_webhook: ${{ secrets.shamanops_chat_webhook }}
shamanops_registry_password: ${{ secrets.shamanops_registry_password }}
shamanops_dockerfile_token: ${{ secrets.shamanops_dockerfile_token }}
##################################################################################################
info
By default, pre-trunk-based applications are configured to not be deleted.
To define how many days the application should live, you must modify the field appDaysToLive in Features section.
2. Commit and Enjoy! ✨