migrate travis docker build process to github actions

Description

travis has stopped doing docker builds due to no more credits

https://app.travis-ci.com/github/lucee/lucee-dockerfiles

https://hub.docker.com/r/lucee/lucee

Activity

Zac Spitzer 2 May 2022 at 20:12

added the trigger to the build process for 6.0

https://github.com/lucee/Lucee/commit/4f75753c3e422d0de8ec02162587a041e0ed6eb4

it only runs when a new build version is created (ie. it hasn’t been uploaded to s3 previously)

Zac Spitzer 2 May 2022 at 19:40

I’ve setup a repository dispatch, I’m gonna call this as part of the upload to s3 process via cfml

https://github.com/lucee/Lucee/blob/6.0/ant/upload-to-s3.xml

here’s the snippet, it only even returns a 204 content, which is a bit annoying

<cfscript>     token = ""; // needs a github person action token with workflow and repo rights     body = {         "event_type": "build-docker-images",         "client_payload": {             "LUCEE_VERSION": "5.3.9.133"         }     }; </cfscript> <cfhttp url="https://api.github.com/repos/lucee/lucee-dockerfiles/dispatches" method="POST" result="result" timeout="90">     <cfhttpparam type="header" name='authorization' value='Bearer #token#'>     <cfhttpparam type="body" value='#body.toJson()#'> </cfhttp> <cfdump var=#deserializeJson(result.filecontent)#> <cfdump var=#result#>

I’m setting ENV vars when it’s a repository dispatch here (from client_payload)

https://github.com/lucee/lucee-dockerfiles/blob/master/.github/workflows/main.yml#L58

but it’s not quite working yet?

https://github.com/lucee/lucee-dockerfiles/runs/6263101758?check_suite_focus=true#step:6:9

Run echo $LUCEE_VERSION echo $LUCEE_VERSION shell: /usr/bin/bash -e {0} env: LUCEE_VERSION: 5.3.9.133 TRAVIS_PULL_REQUEST: false pythonLocation: /opt/hostedtoolcache/Python/3.10.4/x64 LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.10.4/x64/lib BRANCH: 5.3.9.133 26s Run echo LUCEE_VERSION: $LUCEE_VERSION echo LUCEE_VERSION: $LUCEE_VERSION echo BRANCH: $BRANCH echo PULL_REQUEST: $PULL_REQUEST pip3 install -r requirements.txt python3 ./generate-matrix.py >/dev/null && git diff --exit-code shell: /usr/bin/bash -e {0} env: LUCEE_VERSION: TRAVIS_PULL_REQUEST: false pythonLocation: /opt/hostedtoolcache/Python/3.10.4/x64 LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.10.4/x64/lib LUCEE_VERSION: BRANCH: PULL_REQUEST:

Zac Spitzer 28 April 2022 at 03:39

first cut https://github.com/lucee/lucee-dockerfiles/pull/72

need secrets defined, etc

Fixed

Details

Assignee

Reporter

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Priority

Created 27 April 2022 at 13:48
Updated 11 November 2022 at 10:07
Resolved 31 May 2022 at 14:59