Skip to content

Commit b65c955

Browse files
authored
Merge pull request #298 from bestbeforetoday/schedule
Enable scheduled builds for release-2.5 branch
2 parents a41d1e0 + fa61de6 commit b65c955

File tree

5 files changed

+19
-21
lines changed

5 files changed

+19
-21
lines changed

.github/workflows/pull_request.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ on:
77
pull_request:
88
branches:
99
- main
10-
- release-2.5
1110
workflow_dispatch:
1211

1312
concurrency:

.github/workflows/push.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ on:
77
push:
88
branches:
99
- main
10-
- release-2.5
1110
workflow_dispatch:
1211

1312
jobs:

.github/workflows/release.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ jobs:
1919
strategy:
2020
fail-fast: false
2121
matrix:
22-
publish_target: ["publishAllPublicationsToGithubPackagesRepository","publishAllPublicationsToReleaseRepository"]
22+
publish_target:
23+
- publishAllPublicationsToGithubPackagesRepository
24+
- publishAllPublicationsToReleaseRepository
2325
runs-on: ubuntu-latest
2426
needs: test
2527
steps:
@@ -30,7 +32,7 @@ jobs:
3032
java-version: '11'
3133
cache: 'gradle'
3234
- name: Validate Gradle wrapper
33-
uses: gradle/wrapper-validation-action@v1.0.5
35+
uses: gradle/wrapper-validation-action@v1
3436
- name: Push to registry ${{ matrix.publish_target }}
3537
run: |
3638
set -xev
@@ -48,7 +50,9 @@ jobs:
4850
strategy:
4951
fail-fast: false
5052
matrix:
51-
DOCKER_REGISTRY: ["docker.io","ghcr.io"]
53+
DOCKER_REGISTRY:
54+
- 'docker.io'
55+
- 'ghcr.io'
5256
runs-on: ubuntu-latest
5357
needs: test
5458
permissions:
@@ -62,15 +66,14 @@ jobs:
6266
java-version: '11'
6367
cache: 'gradle'
6468
- name: Validate Gradle wrapper
65-
uses: gradle/wrapper-validation-action@v1.0.5
69+
uses: gradle/wrapper-validation-action@v1
6670
- name: Build the depencies needed for the image
67-
uses: gradle/gradle-build-action@v2.3.3
71+
uses: gradle/gradle-build-action@v2
6872
with:
6973
arguments: |
7074
:fabric-chaincode-docker:copyAllDeps -x dependencyCheckAnalyze
7175
- name: Set up QEMU
7276
uses: docker/setup-qemu-action@v2
73-
7477
- name: Set up Docker Buildx
7578
uses: docker/setup-buildx-action@v2
7679
with:
@@ -84,7 +87,6 @@ jobs:
8487
registry: ${{ matrix.DOCKER_REGISTRY }}
8588
username: ${{ matrix.DOCKER_REGISTRY == 'docker.io' && secrets.DOCKERHUB_USERNAME || github.actor }}
8689
password: ${{ matrix.DOCKER_REGISTRY == 'docker.io' && secrets.DOCKERHUB_TOKEN || secrets.GITHUB_TOKEN }}
87-
8890
- name: Docker meta
8991
id: meta
9092
uses: docker/metadata-action@v4

.github/workflows/schedule.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,9 @@ on:
1111
jobs:
1212
main:
1313
uses: ./.github/workflows/test.yml
14-
# Requires a test.yml to exist in the release-2.5 branch to implement the release-2.5 specific build/test steps, since
15-
# they are different from the main branch.
16-
#
17-
# release-2_5:
18-
# name: release-2.5
19-
# uses: hyperledger/fabric-chaincode-java/.github/workflows/[email protected]
20-
# with:
21-
# checkout-ref: release-2.5
14+
15+
release-2_5:
16+
name: release-2.5
17+
uses: hyperledger/fabric-chaincode-java/.github/workflows/[email protected]
18+
with:
19+
checkout-ref: release-2.5

.github/workflows/test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ jobs:
2525
java-version: '11'
2626
cache: 'gradle'
2727
- name: Validate Gradle wrapper
28-
uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b
28+
uses: gradle/wrapper-validation-action@v1
2929
- name: Dependency Check
30-
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
30+
uses: gradle/gradle-build-action@v2
3131
with:
3232
arguments: |
3333
:fabric-chaincode-shim:dependencyCheckAnalyze
3434
- name: Build and Unit test
35-
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
35+
uses: gradle/gradle-build-action@v2
3636
with:
3737
arguments: |
3838
:fabric-chaincode-shim:build
@@ -69,7 +69,7 @@ jobs:
6969
peer version
7070
weft --version
7171
- name: Integration Tests
72-
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
72+
uses: gradle/gradle-build-action@v2
7373
with:
7474
arguments: |
7575
:fabric-chaincode-integration-test:build

0 commit comments

Comments
 (0)