Skip to content

Commit

Permalink
feat(ci): uses rsksmart docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
jurajpiar committed May 13, 2024
1 parent a00ca3c commit 268aef1
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Run SonarQube analysis
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: |
echo "Installing git"
apt-get update && apt-get install -yqq git
Expand Down Expand Up @@ -92,8 +94,8 @@ jobs:
echo "Running SonarQube analysis"
./configure.sh
./gradlew sonarqube --no-daemon -x build -x test $extra_flags \
-Dsonar.organization=rsksmart -Dsonar.host.url="$sonar_url" -Dsonar.login="$sonar_token"
./gradlew sonarqube --no-daemon -x build -x test $extra_flags
tests:
needs: build
Expand Down Expand Up @@ -164,10 +166,10 @@ jobs:

- name: Build and push Docker images
run: |
docker build -t jurajpiar/bitcoind1:latest -f bitcoind1.Dockerfile .
docker push jurajpiar/bitcoind1:latest
docker build -t jurajpiar/bitcoind2:latest -f bitcoind2.Dockerfile .
docker push jurajpiar/bitcoind2:latest
docker build -t rsksmart/mit_bitcoind1:latest -f bitcoind1.Dockerfile .
docker push rsksmart/mit_bitcoind1:latest
docker build -t rsksmart/mit_bitcoind2:latest -f bitcoind2.Dockerfile .
docker push rsksmart/mit_bitcoind2:latest
mining-tests:
Expand All @@ -177,14 +179,14 @@ jobs:
runs-on: ubuntu-latest
services:
bitcoind1:
image: jurajpiar/bitcoind1:latest
image: rsksmart/mit_bitcoind1:latest
ports:
- 8331:8331
- 31591:31591
- 32591:32591
options: --name bitcoind1
bitcoind2:
image: jurajpiar/bitcoind2:latest
image: rsksmart/mit_bitcoind2:latest
ports:
- 8332:8332
- 31592:31592
Expand Down
16 changes: 16 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,19 @@ subprojects {
group = 'co.rsk'
version = config.modifier?.trim() ? config.versionNumber + "-" + config.modifier : config.versionNumber
}

sonarqube {
properties {
property "sonar.organisation", "rsksmart"
property "sonar.scm.provider", "git"
property "sonar.sources", "src/main/java"
property "sonar.java.binaries", "rsksmart/build/classes/java/main"
property "sonar.java.libraries", "rsksmart/build/libs"
property "sonar.login", System.getenv('SONAR_TOKEN')
property "sonar.host.url", "https://sonarcloud.io"
property "sonar.java.source", "1.8"
property "sonar.java.target", "1.17"
property "sonar.junit.reportsPath", "rsksmart/build/test-results/test"
property "sonar.jacoco.reportPaths", "rsksmart/build/jacoco/test.exec"
}
}

0 comments on commit 268aef1

Please sign in to comment.