Change trigger and add clean cache to prepare

This commit is contained in:
mikolajbrzezinski
2022-08-24 14:03:19 +02:00
parent 72182f4ef5
commit 87c0fa228e

View File

@@ -1,9 +1,6 @@
name: Alfresco Elasticsearch Connector CI name: Alfresco Elasticsearch Connector CI
on: on: push
push:
branches:
- develops
env: env:
# Both variables are required to be set before the release process starts. # Both variables are required to be set before the release process starts.
@@ -12,16 +9,17 @@ env:
DEVELOPMENT_VERSION: "17.92-SNAPSHOT" # The version that will be set in pom files after the release (next dev version) DEVELOPMENT_VERSION: "17.92-SNAPSHOT" # The version that will be set in pom files after the release (next dev version)
RELEASE_VERSION: "17.91" # The version of the release (tag). RELEASE_VERSION: "17.91" # The version of the release (tag).
GITHUB_ACTIONS_DEPLOY_TIMEOUT: 60 GITHUB_ACTIONS_DEPLOY_TIMEOUT: 60
MAVEN_CLI_OPTS: "-B -e -fae -V -DinstallAtEnd=true -U -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn " MAVEN_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
MAVEN_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
MAVEN_USERNAME: ${{ secrets.NEXUS_USERNAME }} MAVEN_USERNAME: ${{ secrets.NEXUS_USERNAME }}
QUAY_PASSWORD: ${{ secrets.QUAY_PASSWORD }} JAVA_VERSION: "17"
QUAY_USERNAME: ${{ secrets.QUAY_USERNAME }}
jobs: jobs:
prepare: prepare:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: "Clean cache"
run: bash scripts/travis/cleanup_cache.sh
- name: "Prepare environment"
- uses: ./.github/actions/prepare - uses: ./.github/actions/prepare
veracode: veracode:
@@ -32,4 +30,4 @@ jobs:
(github.ref_name == 'master' || contains(github.ref_name, 'release')) && (github.ref_name == 'master' || contains(github.ref_name, 'release')) &&
! contains(github.event.head_commit.message, '[skip build]') ! contains(github.event.head_commit.message, '[skip build]')
steps: steps:
- uses: Alfresco/alfresco-build-tools/.github/actions/veracode@1.10.0 - uses: Alfresco/alfresco-build-tools/.github/actions/veracode@1.12.0