|
8 | 8 | jobs: |
9 | 9 | order-service-build-and-push: |
10 | 10 | runs-on: ubuntu-latest |
11 | | - if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/ci' || startsWith(github.ref, 'refs/tags/') |
| 11 | + if: github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/ci' || startsWith(github.ref, 'refs/tags/') |
12 | 12 | defaults: |
13 | 13 | run: |
14 | 14 | working-directory: 1-order-service |
|
37 | 37 | uses: docker/build-push-action@v5 |
38 | 38 | with: |
39 | 39 | context: ./1-order-service |
40 | | - push: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/ci' || startsWith(github.ref, 'refs/tags/') }} |
| 40 | + push: ${{ github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/ci' || startsWith(github.ref, 'refs/tags/') }} |
41 | 41 | tags: | |
42 | 42 | ${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }} |
43 | 43 | platforms: linux/amd64 |
|
46 | 46 |
|
47 | 47 | inventory-service-build-and-push: |
48 | 48 | runs-on: ubuntu-latest |
49 | | - if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/ci' || startsWith(github.ref, 'refs/tags/') |
| 49 | + if: github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/ci' || startsWith(github.ref, 'refs/tags/') |
50 | 50 | defaults: |
51 | 51 | run: |
52 | 52 | working-directory: 2-inventory-service |
|
75 | 75 | uses: docker/build-push-action@v5 |
76 | 76 | with: |
77 | 77 | context: ./2-inventory-service |
78 | | - push: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/ci' || startsWith(github.ref, 'refs/tags/') }} |
| 78 | + push: ${{ github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/ci' || startsWith(github.ref, 'refs/tags/') }} |
79 | 79 | tags: | |
80 | 80 | ${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }} |
81 | 81 | platforms: linux/amd64 |
|
84 | 84 |
|
85 | 85 | payment-service-build-and-push: |
86 | 86 | runs-on: ubuntu-latest |
87 | | - if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/ci' || startsWith(github.ref, 'refs/tags/') |
| 87 | + if: github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/ci' || startsWith(github.ref, 'refs/tags/') |
88 | 88 | defaults: |
89 | 89 | run: |
90 | 90 | working-directory: 3-payment-service |
@@ -113,7 +113,7 @@ jobs: |
113 | 113 | uses: docker/build-push-action@v5 |
114 | 114 | with: |
115 | 115 | context: ./3-payment-service |
116 | | - push: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/ci' || startsWith(github.ref, 'refs/tags/') }} |
| 116 | + push: ${{ github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/ci' || startsWith(github.ref, 'refs/tags/') }} |
117 | 117 | tags: | |
118 | 118 | ${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }} |
119 | 119 | platforms: linux/amd64 |
|
0 commit comments