Shared Github actions to run tests, manage semver version information, publish container images, deploy containers and release nuget packages.
Builds and pushes a container image to the registry (Docker by default).
The .csproj file must contain the <EnableSdkContainerSupport>true</EnableSdkContainerSupport> tag.
Call this on pull_request target events, give it pull request and content write privileges.
Create a GitHub deployment, attempts to deploy and update deployment status.
Accepts both nuget and kubernetes types. If kubernetes, will deploy the container image to kubernetes too.
One thing to keep in mind is that to give the token permissions to use the deploy API we need to do that before calling the reusable action.
Outputs the last commit SHA. If the target event is pull_request outputs the PR commit SHA. Otherwise, will be the last branch commit SHA.
Computes the next semver and produces a release tag.
Used to require manual approval from specific users or org user groups. It will create an issue where approvers can comment to allow or deny the workflow run.
Used to publish nuget packages to the private github nuget repository.
Used to try to retrieve tag as artifact and push it.
Builds and tests a dotnet solution.
Outputs the environment, runner name and container image tag prefix based on the branch name.
Deploy a container image to Kubernetes.
All shared workflows are available in .github/workflows/ path.
Builds, pushes and deploys a container image to Kubernetes.
Uses both build-push-container-image and deploy actions.
Sample usage with the default behaviour and options:
deploy-api:
name: "Deploy API"
uses: trakx/github-actions/.github/workflows/shared-build-deploy-container.yml@master
with:
projectFolder: "src/Trakx.SampleService.Api"
serviceName: "sampleservice-api"
secrets: inheritMore details here: https://trakx.atlassian.net/wiki/spaces/development/pages/33390593/Deployment+and+Github+Actions