add env.service_service to cicd.yaml #31
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Java CI | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'adopt' | |
# | |
# - name: Validate Gradle wrapper | |
# uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b | |
# | |
# - name: Build with Gradle | |
# uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1 | |
# with: | |
# arguments: build | |
- name: Project build | |
env: | |
SERVICE_VERSION: 1.0.${{ github.run_number }} | |
run: ./gradlew build -PprojectVersion=${SERVICE_VERSION} --build-cache |