Skip to content

generate_pipeline

generate_pipeline #112

name: sync-pipeline
on:
repository_dispatch:
types: [generate_pipeline]
jobs:
ci:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
steps:
- name: Check Out The Repository
uses: actions/checkout@v2
with:
ref: main
- name: Grant execute permission for script
run: chmod +x ./script/generate_pipeline.sh
- name: Validate
run: ./script/generate_pipeline.sh
- name: Pull latest changes
run: git pull origin main
- name: Commit The New Image Reference
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "release :: deploy pipeline"
branch: main
commit_options: '--no-verify --signoff'
repository: .
commit_user_name: XQUARE GitOps Bot
commit_user_email: [email protected]
commit_author: XQUARE GitOps Bot <[email protected]>
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ap-northeast-2
- name: Update kubeconfig
run: |
aws eks update-kubeconfig --name xquare-v3-cluster
- name: Create Elastic Agent Profile
run: |
cd script
chmod +x create_agent_profile.sh
./create_agent_profile.sh ${{ github.event.client_payload.service_name }}