File tree Expand file tree Collapse file tree 2 files changed +57
-0
lines changed
Expand file tree Collapse file tree 2 files changed +57
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build image and push to registry
2+ on :
3+ push :
4+ branches :
5+ - " **"
6+ tags :
7+ - " **"
8+ - " !**_deploy"
9+
10+ concurrency :
11+ group : ${{ github.ref }}
12+ cancel-in-progress : true
13+
14+ jobs :
15+ build-docker :
16+ uses : CyberCRI/github-workflows/.github/workflows/build-push.yaml@main
17+ with :
18+ registry-name : ${{ vars.DOCKER_PROD_REGISTRY }}
19+ image-name : welearn-datastack
20+ image-tag : ${{ github.sha }}
21+ recursive-submodule-checkout : true
22+ secrets :
23+ submodules-app-private-key : ${{ secrets.INFRA_BOT_APP_PRIVATE_KEY }}
24+ submodules-app-id : ${{ secrets.INFRA_BOT_APP_ID }}
25+ submodules-app-installation-id : ${{ secrets.INFRA_BOT_APP_INSTALLATION_ID }}
26+ registry-username : ${{ secrets.DOCKER_PROD_USERNAME }}
27+ registry-password : ${{ secrets.DOCKER_PROD_PASSWORD }}
28+ lint-and-test :
29+ uses : ./.github/workflows/lint-and-test.yml
30+ tag-deploy :
31+ needs :
32+ - build-docker
33+ - lint-and-test
34+ uses : CyberCRI/github-workflows/.github/workflows/tag-deploy.yaml@main
35+ tag-deploy-fast :
36+ needs :
37+ - build-docker
38+ uses : CyberCRI/github-workflows/.github/workflows/tag-deploy-fast.yaml@main
Original file line number Diff line number Diff line change 1+ name : Lint & test
2+ on :
3+ workflow_call :
4+
5+ jobs :
6+ tests :
7+ runs-on : wlds-lint-and-test-runner
8+ steps :
9+ - uses : actions/checkout@v4
10+ - uses : actions/setup-python@v5
11+ with :
12+ python-version : ' 3.12'
13+ - run : python -m pip install --no-cache-dir --upgrade -r ./requirements.txt
14+ - name : Check format
15+ run : make format-check
16+ - name : Lint
17+ run : make lint
18+ - name : Test
19+ run : make test
You can’t perform that action at this time.
0 commit comments