Skip to content

ci: Adds deployment pipelines [PE-141] #2

ci: Adds deployment pipelines [PE-141]

ci: Adds deployment pipelines [PE-141] #2

Workflow file for this run

# 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

View workflow run for this annotation

GitHub Actions / .github/workflows/staging.yml

Invalid workflow file

error parsing called workflow ".github/workflows/staging.yml" -> "g2crowd/gh-actions/.github/workflows/gitops-bake-build.yml@main" : workflow was not found. See https://docs.github.com/actions/learn-github-actions/reusing-workflows#access-to-reusable-workflows for more information.
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