|
18 | 18 | outputs: |
19 | 19 | server: ${{ steps.filter.outputs.server }} |
20 | 20 | chart: ${{ steps.filter.outputs.chart }} |
21 | | - CR: ${{ steps.filter.outputs.CR }} |
22 | 21 | web: ${{ steps.filter.outputs.web }} |
23 | 22 | steps: |
24 | 23 | - uses: actions/checkout@v4 |
|
30 | 29 | - 'server/**' |
31 | 30 | chart: |
32 | 31 | - 'chart/**' |
33 | | - CR: |
34 | | - - 'collect-currency/**' |
35 | 32 | web: |
36 | 33 | - 'web/**' |
37 | 34 |
|
@@ -101,39 +98,6 @@ jobs: |
101 | 98 | labels: ${{ steps.meta.outputs.labels }} |
102 | 99 | platforms: linux/amd64,linux/arm64 |
103 | 100 |
|
104 | | - build-and-push-CR: |
105 | | - needs: changes |
106 | | - if: ${{ needs.changes.outputs.CR == 'true' }} |
107 | | - runs-on: ubuntu-latest |
108 | | - permissions: |
109 | | - contents: read |
110 | | - packages: write |
111 | | - |
112 | | - steps: |
113 | | - - uses: actions/checkout@v4 |
114 | | - - uses: docker/setup-buildx-action@v3 |
115 | | - - uses: docker/login-action@v3 |
116 | | - with: |
117 | | - registry: ${{ env.REGISTRY }} |
118 | | - username: ${{ github.actor }} |
119 | | - password: ${{ secrets.GITHUB_TOKEN }} |
120 | | - - id: meta |
121 | | - uses: docker/metadata-action@v5 |
122 | | - with: |
123 | | - images: ${{ env.IMAGE_PREFIX }}-collect-currency |
124 | | - tags: | |
125 | | - type=raw,value=latest |
126 | | - type=ref,event=branch |
127 | | - type=sha |
128 | | - - uses: docker/build-push-action@v5 |
129 | | - with: |
130 | | - file: Dockerfile-collect-currency |
131 | | - context: . |
132 | | - push: true |
133 | | - tags: ${{ steps.meta.outputs.tags }} |
134 | | - labels: ${{ steps.meta.outputs.labels }} |
135 | | - platforms: linux/amd64,linux/arm64 |
136 | | - |
137 | 101 | build-and-push-web: |
138 | 102 | needs: changes |
139 | 103 | if: ${{ needs.changes.outputs.web == 'true' }} |
|
0 commit comments