Merge pull request #37 from TU-NEBULA/feature/SCRUM-219 #19
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
| name: CI Test | |
| on: | |
| push: | |
| branches: | |
| - test | |
| - dev | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout dev | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: '3.x' | |
| - name: Create .env file | |
| run: | | |
| echo "${{ secrets.DEV_ENV_FILE }}" > .env | |
| - name: Docker image build and push | |
| uses: docker/build-push-action@v1 | |
| with: | |
| username: ${{ secrets.DOCKER_ID }} | |
| password: ${{ secrets.DOCKER_PW }} | |
| repository: wonjun0120/nebula-ai | |
| tags: latest | |
| trigger-cd: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Trigger CD Workflow | |
| run: | | |
| curl -X POST -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ | |
| -H "Accept: application/vnd.github.v3+json" \ | |
| https://api.github.com/repos/TU-NEBULA/nebula-ai/actions/workflows/cd-test.yml/dispatches \ | |
| -d '{"ref":"test"}' |