ci: Adds deployment pipelines [PE-141] #2
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Development k8s cluster deployment workflow | ||
name: Dev cluster Deployment | ||
on: | ||
pull_request: | ||
types: | ||
- labeled | ||
- synchronize | ||
concurrency: | ||
group: ${{ github.ref }} | ||
cancel-in-progress: true | ||
env: | ||
REGISTRY: ghcr.io | ||
IMAGE_NAME: ${{ github.repository }} | ||
jobs: | ||
bake-build: | ||
if: contains(github.event.pull_request.labels.*.name, 'staging') | ||
uses: g2crowd/gh-actions/.github/workflows/gitops-bake-build.yml@main | ||
Check failure on line 21 in .github/workflows/staging.yml
|
||
with: | ||
environment: dev | ||
branch: ${{ github.head_ref || github.ref_name }} | ||
bakefile: docker-bake.hcl | ||
runs-on: ubicloud-standard-4-arm | ||
secrets: inherit | ||
extract-image-name: | ||
needs: [bake-build] | ||
runs-on: ubuntu-latest | ||
outputs: | ||
image_name: ${{ steps.extract.outputs.image_name }} | ||
steps: | ||
- id: extract | ||
run: | | ||
IMAGE_NAME=$(echo '${{ needs.bake-build.outputs.metadata }}' | jq -r '.default["image.name"]') | ||
echo "image_name=${IMAGE_NAME}" >> $GITHUB_OUTPUT | ||
# commit-to-gitops: | ||
# needs: [bake-build, extract-image-name] | ||
# uses: g2crowd/gh-actions/.github/workflows/gitops-deploy.yml@main | ||
# secrets: inherit | ||
# with: | ||
# image_tag: ${{ needs.extract-image-name.outputs.image_name }} | ||
# app_repo_branch: ${{ github.head_ref || github.ref_name }} | ||
# path_to_kustomization: kustomize/Marketplace/n8n/environments/development/kustomization.yaml | ||
# path_to_rollout: kustomize/Marketplace/n8n/environments/development/kustomization.yaml | ||
# image_yq_matcher: .images[0].newName |