[DOCKER-440] replace 2.0.8.1 with 2.0.8.2 #347
Workflow file for this run
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: 'Continuous Integration' | |
on: | |
push: | |
workflow_dispatch: | |
schedule: | |
- cron: '7 0 * * SUN' | |
env: | |
GRADLE_OPTS: >- | |
-Dorg.gradle.project.eu.xenit.cloudsmith.username=${{ secrets.CLOUDSMITH_USER }} | |
-Dorg.gradle.project.eu.xenit.cloudsmith.password=${{ secrets.CLOUDSMITH_APIKEY }} | |
jobs: | |
integration-test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
version: | |
- solr6 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-java@v1 | |
with: | |
java-version: 1.11 | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
- name: Add license | |
run: | | |
touch ./src/integrationTest/resources/license61/license.lic | |
echo ${{secrets.ALFRESCO_LICENSE61}} > ./src/integrationTest/resources/license61/license.lic | |
chmod 666 ./src/integrationTest/resources/license61/license.lic | |
- name: Login to Docker | |
run: | | |
echo "${{ secrets.CLOUDSMITH_APIKEY }}" | docker login private.docker.xenit.eu --username "${{ secrets.CLOUDSMITH_USER }}" --password-stdin | |
- name: Run integration tests | |
env: | |
VERSIONS_TO_BUILD: ${{ matrix.version }} | |
run: ./gradlew integrationTests --info | |
- name: Upload Artifact | |
if: success() || failure() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: test-result | |
path: /home/runner/work/**/build/reports | |
retention-days: 2 | |
publish: | |
needs: [ integration-test ] | |
runs-on: ubuntu-latest | |
if: ${{ startsWith(github.ref, 'refs/heads/master') || startsWith(github.ref, 'refs/heads/release') }} | |
strategy: | |
matrix: | |
version: | |
- solr6 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
- name: Login to CloudSmith | |
run: | | |
echo "${{ secrets.CLOUDSMITH_APIKEY }}" | docker login private.docker.xenit.eu --username "${{ secrets.CLOUDSMITH_USER }}" --password-stdin | |
# We have to split out publishing to public and private repo's because pushing to docker.io does not seem to work | |
# without supplying DOCKER_USER and DOCKER_PASSWORD. However, supplying those environment variables breaks | |
# publishing to other repositories | |
- name: Publish public docker images | |
env: | |
DOCKER_USER: ${{ secrets.DOCKER_USER }} | |
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | |
VERSIONS_TO_BUILD: ${{ matrix.version }} | |
run: ./gradlew pushDockerImage -PincludeEnterprise=false | |
- name: Publish private docker images | |
env: | |
VERSIONS_TO_BUILD: ${{ matrix.version }} | |
run: ./gradlew pushDockerImage -PincludeCommunity=false |