|
1 | 1 | name: Create and publish a Docker image |
2 | 2 |
|
3 | | -# Configures this workflow to run only on signed release tags |
| 3 | +# Configures this workflow to run on signed release tags for both node and helm releases |
4 | 4 | on: |
5 | 5 | push: |
6 | | - tags: ['fennel-node-*'] # run only for release tags |
| 6 | + tags: |
| 7 | + - 'fennel-node-*' # run for node release tags |
| 8 | + - 'helm-fennel-node-*' # run for helm chart release tags |
7 | 9 | workflow_dispatch: |
8 | 10 | inputs: |
9 | 11 | rebuild_release: |
@@ -401,6 +403,7 @@ jobs: |
401 | 403 | ${{ runner.os }}-cargo- |
402 | 404 |
|
403 | 405 | - name: Build fennel node using Parity CI Unified image |
| 406 | + if: startsWith(github.ref, 'refs/tags/fennel-node-') || !startsWith(github.ref, 'refs/tags/') |
404 | 407 | id: build_node |
405 | 408 | env: |
406 | 409 | PROD_SUDO_SS58: ${{ secrets.PROD_SUDO_SS58 }} |
@@ -850,7 +853,7 @@ jobs: |
850 | 853 | # Only generate production chainspecs for release tags |
851 | 854 | # ------------------------------------------------------------ |
852 | 855 | - name: Create production chain specs |
853 | | - if: startsWith(github.ref, 'refs/tags/') |
| 856 | + if: startsWith(github.ref, 'refs/tags/fennel-node-') |
854 | 857 | env: |
855 | 858 | PROD_SUDO_SS58: ${{ secrets.PROD_SUDO_SS58 }} |
856 | 859 | PROD_VAL1_AURA_PUB: ${{ secrets.PROD_VAL1_AURA_PUB }} |
@@ -951,7 +954,7 @@ jobs: |
951 | 954 | echo "✅ All production chain spec files are populated" |
952 | 955 |
|
953 | 956 | - name: Inject bootnodes into production chain spec |
954 | | - if: startsWith(github.ref, 'refs/tags/') |
| 957 | + if: startsWith(github.ref, 'refs/tags/fennel-node-') |
955 | 958 | run: | |
956 | 959 | set -euo pipefail |
957 | 960 | |
@@ -1004,7 +1007,7 @@ jobs: |
1004 | 1007 | jq '{name: .name, id: .id, chainType: .chainType}' "$SPEC" |
1005 | 1008 |
|
1006 | 1009 | - name: Commit production chainspecs to repository |
1007 | | - if: startsWith(github.ref, 'refs/tags/') |
| 1010 | + if: startsWith(github.ref, 'refs/tags/fennel-node-') |
1008 | 1011 | run: | |
1009 | 1012 | # Configure git |
1010 | 1013 | git config --local user.email "action@github.com" |
@@ -1163,6 +1166,7 @@ jobs: |
1163 | 1166 | # It uses the `context` parameter to define the build's context as the set of files located in the specified path. For more information, see "[Usage](https://github.com/docker/build-push-action#usage)" in the README of the `docker/build-push-action` repository. |
1164 | 1167 | # It uses the `tags` and `labels` parameters to tag and label the image with the output from the "meta" step. |
1165 | 1168 | - name: Build and push Docker image |
| 1169 | + if: startsWith(github.ref, 'refs/tags/fennel-node-') || !startsWith(github.ref, 'refs/tags/') |
1166 | 1170 | id: build |
1167 | 1171 | uses: docker/build-push-action@v6 |
1168 | 1172 | with: |
@@ -1242,9 +1246,10 @@ jobs: |
1242 | 1246 | - name: Update Chart.yaml version for releases |
1243 | 1247 | if: startsWith(github.ref, 'refs/tags/') |
1244 | 1248 | run: | |
1245 | | - # Extract version from tag (fennel-node-X.Y.Z -> X.Y.Z) |
| 1249 | + # Extract version from tag (fennel-node-X.Y.Z -> X.Y.Z or helm-fennel-node-X.Y.Z -> X.Y.Z) |
1246 | 1250 | CHART_VERSION="${{ github.ref_name }}" |
1247 | 1251 | CHART_VERSION="${CHART_VERSION#fennel-node-}" # Remove fennel-node- prefix |
| 1252 | + CHART_VERSION="${CHART_VERSION#helm-fennel-node-}" # Remove helm-fennel-node- prefix |
1248 | 1253 | |
1249 | 1254 | echo "🏷️ Updating Chart.yaml version to: $CHART_VERSION" |
1250 | 1255 | |
@@ -1321,7 +1326,7 @@ jobs: |
1321 | 1326 | ls -la release/ |
1322 | 1327 |
|
1323 | 1328 | - name: Verify release files exist |
1324 | | - if: startsWith(github.ref, 'refs/tags/') |
| 1329 | + if: startsWith(github.ref, 'refs/tags/fennel-node-') |
1325 | 1330 | run: | |
1326 | 1331 | echo "🔍 Verifying all expected release files exist..." |
1327 | 1332 | |
@@ -1377,7 +1382,7 @@ jobs: |
1377 | 1382 |
|
1378 | 1383 | - name: Create GitHub Release |
1379 | 1384 | uses: softprops/action-gh-release@v2 |
1380 | | - if: startsWith(github.ref, 'refs/tags/') |
| 1385 | + if: startsWith(github.ref, 'refs/tags/fennel-node-') |
1381 | 1386 | with: |
1382 | 1387 | files: | |
1383 | 1388 | release/*.tgz |
@@ -1438,6 +1443,7 @@ jobs: |
1438 | 1443 |
|
1439 | 1444 | - name: Run chart-releaser |
1440 | 1445 | uses: helm/chart-releaser-action@v1.6.0 |
| 1446 | + if: startsWith(github.ref, 'refs/tags/helm-fennel-node-') |
1441 | 1447 | with: |
1442 | 1448 | charts_dir: Charts |
1443 | 1449 | skip_existing: true |
|
0 commit comments