# name: CD # on: # workflow_run: # workflows: ["ci"] # branches: [main] # types: # - completed # jobs: # deploy: # runs-on: ubuntu-latest # steps: # - name: Check out # # uses: actions/checkout@v2 # uses: actions/checkout@v3 # # - uses: actions/setup-python@v2 # - uses: actions/setup-python@v5 # with: # python-version: '3.12.3' # architecture: x64 # - uses: BSFishy/pip-action@v1 # with: # packages: | # kfp==1.11.0 # - name: run pipeline to kubeflow # run: python kubeflow_pipeline/pipeline.py # - name: Slack Notification # if: always() # uses: rtCamp/action-slack-notify@v2 # env: # SLACK_ICON_EMOJI: ':bell:' # SLACK_CHANNEL: mnist-project # SLACK_MESSAGE: 'Upload & Run pipeline :rocket: - ${{job.status}}' # SLACK_USERNAME: Github # SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }} name: CD on: workflow_run: workflows: ["ci"] branches: [main] types: - completed jobs: deploy: # runs-on: ubuntu-latest runs-on: - self-hosted - kubeflow steps: - name: Check out uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: python-version: '3.12' # - name: Install dependencies # run: pip install kfp==2.16.0 # kfp 2.x로 업그레이드 # - name: run pipeline to kubeflow # run: python kubeflow_pipeline/pipeline.py - name: Install dependencies run: pip install kfp==2.16.0 kfp-kubernetes - name: run pipeline to kubeflow env: KFP_HOST: ${{ secrets.KFP_HOST }} # GitHub Secret으로 host 관리 run: python kubeflow_pipeline/pipeline.py - name: Slack Notification if: always() uses: rtCamp/action-slack-notify@v2 env: SLACK_ICON_EMOJI: ':bell:' SLACK_CHANNEL: mnist-project SLACK_MESSAGE: 'Upload & Run pipeline :rocket: - ${{job.status}}' SLACK_USERNAME: Github SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}