|
53 | 53 | os: [ ubuntu-20.04 ] |
54 | 54 | target: [ ogmios, cardano-node-ogmios ] |
55 | 55 | network: [ "mainnet", "testnet", "vasil-dev" ] |
| 56 | + cardano_node_version: [ "1.35.2" ] |
56 | 57 |
|
57 | 58 | runs-on: ${{ matrix.os }} |
58 | 59 | steps: |
@@ -114,19 +115,43 @@ jobs: |
114 | 115 | cache-to: type=inline |
115 | 116 |
|
116 | 117 | - name: 🏷️ Build and push (default tag) |
117 | | - if: ${{ github.event_name == 'push' && matrix.network == 'mainnet' && startsWith(github.ref, 'refs/tags') }} |
| 118 | + if: ${{ github.event_name == 'push' && matrix.network == 'mainnet' && startsWith(github.ref, 'refs/tags') && matrix.target == 'cardano-node-ogmios' }} |
118 | 119 | uses: docker/build-push-action@v2 |
119 | 120 | with: |
120 | 121 | build-args: NETWORK=${{ matrix.network }} |
121 | 122 | context: . |
122 | 123 | push: true |
123 | | - tags: ${{ steps.base-variables.outputs.image }}:${{ steps.tag-variables.outputs.tag }} |
| 124 | + tags: ${{ steps.base-variables.outputs.image }}:${{ steps.tag-variables.outputs.tag }}_${{ matrix.cardano_node_version }} |
| 125 | + target: ${{ matrix.target }} |
| 126 | + cache-from: type=registry,ref=${{ steps.base-variables.outputs.image }}:latest |
| 127 | + cache-to: type=inline |
| 128 | + |
| 129 | + - name: 🏷️ Build and push (default tag) |
| 130 | + if: ${{ github.event_name == 'push' && matrix.network == 'mainnet' && startsWith(github.ref, 'refs/tags') && matrix.target == 'ogmios' }} |
| 131 | + uses: docker/build-push-action@v2 |
| 132 | + with: |
| 133 | + build-args: NETWORK=${{ matrix.network }}, CARDANO_NODE_VERSION=${{ matrix.cardano_node_version }} |
| 134 | + context: . |
| 135 | + push: true |
| 136 | + tags: ${{ steps.base-variables.outputs.image }}:${{ steps.tag-variables.outputs.tag }}_${{ matrix.cardano_node_version }} |
124 | 137 | target: ${{ matrix.target }} |
125 | 138 | cache-from: type=registry,ref=${{ steps.base-variables.outputs.image }}:latest |
126 | 139 | cache-to: type=inline |
127 | 140 |
|
128 | 141 | - name: 🏷️ Build and push (network tags) |
129 | | - if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags') }} |
| 142 | + if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags') && matrix.target == 'cardano-node-ogmios' }} |
| 143 | + uses: docker/build-push-action@v2 |
| 144 | + with: |
| 145 | + build-args: NETWORK=${{ matrix.network }}, CARDANO_NODE_VERSION=${{ matrix.cardano_node_version }} |
| 146 | + context: . |
| 147 | + push: true |
| 148 | + tags: ${{ steps.base-variables.outputs.image }}:${{ steps.tag-variables.outputs.tag }}_${{ matrix.cardano_node_version }}-${{ matrix.network }} |
| 149 | + target: ${{ matrix.target }} |
| 150 | + cache-from: type=registry,ref=${{ steps.base-variables.outputs.image }}:latest-${{ matrix.network }} |
| 151 | + cache-to: type=inline |
| 152 | + |
| 153 | + - name: 🏷️ Build and push (network tags) |
| 154 | + if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags') && matrix.target == 'ogmios' }} |
130 | 155 | uses: docker/build-push-action@v2 |
131 | 156 | with: |
132 | 157 | build-args: NETWORK=${{ matrix.network }} |
|
0 commit comments