XENFRED-4897 Set Ubuntu version to 20.04 + Set Java version to v17 #118
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 ] | |
env: | |
GRADLE_OPTS: >- | |
-Dorg.gradle.project.buildDate=$(date +%s) | |
-Dorg.gradle.project.org.alfresco.maven.nexus.username=${{ secrets.ALFRESCO_NEXUS_USERNAME }} | |
-Dorg.gradle.project.org.alfresco.maven.nexus.password=${{ secrets.ALFRESCO_NEXUS_PASSWORD }} | |
-Dorg.gradle.project.eu.xenit.cloudsmith.username=${{ secrets.CLOUDSMITH_USER }} | |
-Dorg.gradle.project.eu.xenit.cloudsmith.password=${{ secrets.CLOUDSMITH_APIKEY }} | |
jobs: | |
continuousIntegration: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: webfactory/[email protected] | |
with: | |
ssh-private-key: | | |
${{ secrets.SSH_JENKINS_KEY }} | |
${{ secrets.DEPLOY_KEY_ALFRED_API }} | |
${{ secrets.DEPLOY_KEY_ALFRED_API_DOCS }} | |
${{ secrets.DEPLOY_KEY_EDGE_DOCS }} | |
${{ secrets.DEPLOY_KEY_FINDER_DOCS }} | |
${{ secrets.DEPLOY_KEY_INFLOW_DOCS }} | |
- name: init submodules | |
run: | | |
git submodule update --init --remote | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: temurin | |
java-version: 17 | |
- name: Login to Docker | |
uses: docker/login-action@v2 | |
with: | |
registry: hub.xenit.eu | |
username: ${{ secrets.XENIT_DOCKER_REGISTRY_USERNAME }} | |
password: ${{ secrets.XENIT_DOCKER_REGISTRY_PASSWORD }} | |
- name: Build websites | |
run: | | |
[ -e "pandoc.deb" ] || curl -L https://github.com/jgm/pandoc/releases/download/1.17.2/pandoc-1.17.2-1-amd64.deb -o pandoc.deb | |
echo "84fe35ed9be0f1d8eb6d4cc03d63a8e532e9776f pandoc.deb" | sha1sum -c | |
dpkg -x pandoc.deb pandoc | |
PATH="$(pwd)/pandoc/usr/bin":"$PATH" bash -x ./build-websites.sh | |
- name: 'Upload Artifact' | |
if: success() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: website | |
path: /home/runner/work/alfred-docs/alfred-docs/**/build/website.tar.gz | |
retention-days: 2 |