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 0aeb09d
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,12 @@ jobs:
container:
image: eclipse-temurin:17-jdk
defaults:
run:
working-directory: .
run:
working-directory: .
steps:
- uses: actions/checkout@v2
- name: Run SonarQube analysis
env:
run: |
echo "Installing git"
apt-get update && apt-get install -yqq git
Expand Down Expand Up @@ -93,7 +94,11 @@ 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"
-Dsonar.organization=rsksmart -Dsonar.host.url="$sonar_url" -Dsonar.login="$sonar_token" \
-Dsonar.scm.provider=git
tests:
needs: build
Expand Down Expand Up @@ -164,10 +169,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 +182,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

0 comments on commit 0aeb09d

Please sign in to comment.