|
6 | 6 | branches:
|
7 | 7 | - main
|
8 | 8 | - dev
|
| 9 | + - improve-build-cache |
9 | 10 |
|
10 | 11 | jobs:
|
11 | 12 | deploy:
|
@@ -94,30 +95,30 @@ jobs:
|
94 | 95 | run: |
|
95 | 96 | docker build --tag $SM_DOCKER -f deploy/api/Dockerfile .
|
96 | 97 |
|
97 |
| - - name: Build python package |
98 |
| - run: python setup.py sdist |
| 98 | + # - name: Build python package |
| 99 | + # run: python setup.py sdist |
99 | 100 |
|
100 |
| - - name: "push server image" |
101 |
| - run: | |
102 |
| - docker push $SM_DOCKER |
| 101 | + # - name: "push server image" |
| 102 | + # run: | |
| 103 | + # docker push $SM_DOCKER |
103 | 104 |
|
104 |
| - - name: "deploy to Cloud Run" |
105 |
| - run: | |
106 |
| - if [[ $GITHUB_REF == 'refs/heads/main' ]]; then |
107 |
| - gcloud_deploy_name=sample-metadata-api |
108 |
| - else |
109 |
| - gcloud_deploy_name=sample-metadata-api-dev |
110 |
| - fi |
111 |
| - gcloud run deploy \ |
112 |
| - $gcloud_deploy_name --image $SM_DOCKER \ |
113 |
| - --region australia-southeast1 --no-allow-unauthenticated \ |
114 |
| - --platform managed |
| 105 | + # - name: "deploy to Cloud Run" |
| 106 | + # run: | |
| 107 | + # if [[ $GITHUB_REF == 'refs/heads/main' ]]; then |
| 108 | + # gcloud_deploy_name=sample-metadata-api |
| 109 | + # else |
| 110 | + # gcloud_deploy_name=sample-metadata-api-dev |
| 111 | + # fi |
| 112 | + # gcloud run deploy \ |
| 113 | + # $gcloud_deploy_name --image $SM_DOCKER \ |
| 114 | + # --region australia-southeast1 --no-allow-unauthenticated \ |
| 115 | + # --platform managed |
115 | 116 |
|
116 |
| - - name: Publish package |
117 |
| - if: github.ref == 'refs/heads/main' |
118 |
| - uses: pypa/gh-action-pypi-publish@release/v1 |
119 |
| - with: |
120 |
| - user: __token__ |
121 |
| - password: ${{ secrets.PYPI_API_TOKEN }} |
122 |
| - packages-dir: dist/ |
123 |
| - skip-existing: true |
| 117 | + # - name: Publish package |
| 118 | + # if: github.ref == 'refs/heads/main' |
| 119 | + # uses: pypa/gh-action-pypi-publish@release/v1 |
| 120 | + # with: |
| 121 | + # user: __token__ |
| 122 | + # password: ${{ secrets.PYPI_API_TOKEN }} |
| 123 | + # packages-dir: dist/ |
| 124 | + # skip-existing: true |
0 commit comments