Skip to content

Commit

Permalink
Replace usage of gradle by gradle wrapper in Github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
brfrn169 committed Apr 27, 2023
1 parent e535ce3 commit 552495d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ jobs:
if: always()
id: version
run: |
VERSION=$(gradle :core:properties -q | grep "version:" | awk '{print $2}')
VERSION=$(./gradlew :core:properties -q | grep "version:" | awk '{print $2}')
echo ::set-output name=version::${VERSION}
- name: Run Trivy vulnerability scanner for Scalar DB Server
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-snapshot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ jobs:
- name: Set version
id: version
run: |
VERSION=$(gradle :core:properties -q | grep "version:" | awk '{print $2}')
VERSION=$(./gradlew :core:properties -q | grep "version:" | awk '{print $2}')
echo ::set-output name=version::${VERSION}
- name: Upload SNAPSHOT versions for scalardb, scalardb-server, scalardb-rpc, and scalardb-schema-loader to Maven Central Repository
if: contains(steps.version.outputs.version, '-SNAPSHOT')
run: |
echo "${{secrets.SIGNING_SECRET_KEY_RING}}" | base64 -d > ~/.gradle/secring.gpg
gradle publish \
./gradlew publish \
-Psigning.keyId="${{ secrets.SIGNING_KEY_ID }}" \
-P'signing.password'="${{ secrets.SIGNING_PASSWORD }}" \
-Psigning.secretKeyRingFile="$(echo ~/.gradle/secring.gpg)" \
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
password: ${{ secrets.ACR_PASSWORD }}

- name: Create containers
run: gradle docker
run: ./gradlew docker

- name: Push containers
run: |
Expand All @@ -75,7 +75,7 @@ jobs:
- name: Upload scalardb, scalardb-server, scalardb-rpc, and scalardb-schema-loader to Maven Central Repository
run: |
echo "${{secrets.SIGNING_SECRET_KEY_RING}}" | base64 -d > ~/.gradle/secring.gpg
gradle publish \
./gradlew publish \
-Psigning.keyId="${{ secrets.SIGNING_KEY_ID }}" \
-P'signing.password'="${{ secrets.SIGNING_PASSWORD }}" \
-Psigning.secretKeyRingFile="$(echo ~/.gradle/secring.gpg)" \
Expand All @@ -94,7 +94,7 @@ jobs:
prerelease: false

- name: Build scalardb-server zip
run: gradle :server:distZip
run: ./gradlew :server:distZip

- name: Upload scalardb-server zip
uses: actions/upload-release-asset@v1
Expand All @@ -107,7 +107,7 @@ jobs:
asset_content_type: application/zip

- name: Build scalardb-schema-loader jar
run: gradle :schema-loader:shadowJar
run: ./gradlew :schema-loader:shadowJar

- name: Upload scalardb-schema-loader jar
uses: actions/upload-release-asset@v1
Expand Down

0 comments on commit 552495d

Please sign in to comment.