Skip to content

Commit

Permalink
build: add missing env var
Browse files Browse the repository at this point in the history
  • Loading branch information
zspitzer committed Jul 21, 2023
1 parent c52349d commit e4e3760
Showing 1 changed file with 8 additions and 17 deletions.
25 changes: 8 additions & 17 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ jobs:
build:

runs-on: ubuntu-latest

env:
DO_DEPLOY: "${{ github.event_name == 'push' && github.ref == 'refs/heads/5.4' }}"
LUCEE_BUILD_JAVA_VERSION: 8
LUCEE_TEST_JAVA_VERSION: ''
services:
sql-server:
image: mcr.microsoft.com/mssql/server:2019-latest
Expand All @@ -31,6 +34,9 @@ jobs:
with:
java-version: '8'
distribution: 'adopt'
- name: Disable DEPLOY if not building with Java 8 (Lucee default)
if: ${{ env.LUCEE_BUILD_JAVA_VERSION != '8' }}
run: echo "DO_DEPLOY=false" >> $GITHUB_ENV
- name: Cache Lucee extensions
uses: actions/cache@v3
with:
Expand Down Expand Up @@ -100,7 +106,7 @@ jobs:
LUCEE_DOCKER_FILES_PAT_TOKEN: ${{ secrets.LUCEE_DOCKER_FILES_PAT_TOKEN }}
#run: ant -noinput -buildfile loader/build.xml
run: |
if [ "${{ github.event_name == 'push' }}" == "true" ]; then
if [ "${{ env.DO_DEPLOY }}" == "true" ]; then
echo "------- Maven Deploy on ${{ github.event_name }} -------";
mvn -B -e -f loader/pom.xml clean deploy --settings travis-settings.xml;
else
Expand All @@ -116,18 +122,3 @@ jobs:
with:
files: test/reports/junit-test-results.xml
check_name: "Test Results"
- name: Update Provider
if: ${{ github.event_name == 'push' }}
run: |
curl --no-progress-meter -sIXGET "https://update.lucee.org/rest/update/provider/buildLatest"
curl --no-progress-meter -sIXGET "https://extension.lucee.org/rest/extension/provider/reset"
curl --no-progress-meter -sIXGET "https://download.lucee.org/?type=snapshots&reset=force"
- name: Trigger Docker Build
if: ${{ github.event_name == 'push' }}
env:
TRAVIS_JOB_ID: ${{ github.run_id }}
TRAVIS_TOKEN: ${{ secrets.DOCKER_AUTH_TOKEN }} # not set up yet
run: |
echo "Trigger Docker Build on Travis https://travis-ci.com/github/lucee/lucee-dockerfiles"
chmod +x travis-docker-build.sh
./travis-docker-build.sh

0 comments on commit e4e3760

Please sign in to comment.