Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the Google Mirror as an additional repository in all CI tasks #552

Merged
merged 1 commit into from
May 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .build/cut-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ git commit -m "Bumping the website version to ${VERSION}"
git push

echo "Cutting release ${VERSION}"
mvn -B -fn clean
mvn -s .build/maven-ci-settings.xml -B -fn clean
git checkout ${BRANCH}
HASH=$(git rev-parse --verify $BRANCH)
echo "Last commit is ${HASH} - creating detached branch"
Expand Down
2 changes: 1 addition & 1 deletion .build/deploy-site.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
echo "🚧 Building..."
cd documentation || exit 1
mvn clean test && cd src/main/jekyll && gem install bundler && bundle install && JEKYLL_ENV=production bundle exec jekyll build && cd - || exit 1
cd src/main/jekyll && gem install bundler && bundle install && JEKYLL_ENV=production bundle exec jekyll build && cd - || exit 1
echo "🍺 Site generated in 'target/_site'"

echo "🚧 Cloning web site in target/site"
Expand Down
36 changes: 36 additions & 0 deletions .build/maven-ci-settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<settings>
<profiles>
<profile>
<id>google-mirror</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<repositories>
<repository>
<id>google-maven-central</id>
<name>GCS Maven Central mirror EU</name>
<url>https://maven-central.storage-download.googleapis.com/maven2/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>google-maven-central</id>
<name>GCS Maven Central mirror</name>
<url>https://maven-central.storage-download.googleapis.com/maven2/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
</settings>
Binary file modified .build/maven-settings.xml.gpg
Binary file not shown.
8 changes: 4 additions & 4 deletions .github/workflows/build-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: Build with Maven
env:
MAVEN_OPTS: ${{ matrix.java.opts }}
run: mvn -B clean verify
run: mvn -s .build/maven-ci-settings.xml -B clean verify

snapshot:
needs: build
Expand Down Expand Up @@ -74,8 +74,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_LOGIN }}
run: |
mvn verify -Pcoverage
mvn sonar:sonar \
mvn -s .build/maven-ci-settings.xml verify -Pcoverage
mvn -s .build/maven-ci-settings.xml sonar:sonar \
-Dsonar.projectKey=smallrye_smallrye-mutiny \
-Dsonar.projectName="SmallRye Mutiny" \
-Dsonar.organization=smallrye \
Expand All @@ -100,4 +100,4 @@ jobs:
version: 11
source: releases
- name: Compatibility Check
run: mvn -B install revapi:check@check-compatibility -DskipTests -fae
run: mvn -s .build/maven-ci-settings.xml -B install revapi:check@check-compatibility -DskipTests -fae
4 changes: 2 additions & 2 deletions .github/workflows/build-pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Build with Maven
env:
MAVEN_OPTS: ${{ matrix.java.opts }}
run: mvn -B clean verify -Pcoverage
run: mvn -s .build/maven-ci-settings.xml -B clean verify -Pcoverage
- name: Codecov
uses: codecov/[email protected]
compatibility:
Expand All @@ -47,4 +47,4 @@ jobs:
version: 11
source: releases
- name: Compatibility Check
run: mvn -B install revapi:check@check-compatibility -DskipTests -fae
run: mvn -s .build/maven-ci-settings.xml -B install revapi:check@check-compatibility -DskipTests -fae