[Rt-commit] rt branch 5.0/github-actions-bugfixes updated. rt-5.0.1-613-gf3f898e301

BPS Git Server git at git.bestpractical.com
Mon Aug 23 15:27:21 UTC 2021


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "rt".

The branch, 5.0/github-actions-bugfixes has been updated
       via  f3f898e3018a6baa81cda95d549c50978ab13b32 (commit)
      from  de23ff801bf00295e2031458a1097c76bc858c4e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit f3f898e3018a6baa81cda95d549c50978ab13b32
Author: Brett Smith <brett at bestpractical.com>
Date:   Mon Aug 23 11:26:17 2021 -0400

    Set RT_TEST_DB_HOST in GitHub test containers
    
    lib/RT/Test.pm reads only this, not the value given to configure.

diff --git a/.github/workflows/github-action.yml b/.github/workflows/github-action.yml
index e8c317e858..92e3443d37 100644
--- a/.github/workflows/github-action.yml
+++ b/.github/workflows/github-action.yml
@@ -66,7 +66,7 @@ jobs:
           docker network create rt
           docker run --network rt --name mariadb -e MYSQL_ROOT_PASSWORD=password -d mariadb:10.3
           docker build --network rt -t rt-base .
-          docker run -d -v $GITHUB_WORKSPACE:/rt --network rt --name rt rt-base
+          docker run -d -v $GITHUB_WORKSPACE:/rt --env RT_TEST_DB_HOST=mariadb --network rt --name rt rt-base
           docker exec rt bash -c "cd /rt && ./configure.ac --with-db-type=mysql --with-db-host=mariadb --with-db-rt-host=$(ip --oneline address show to 172.16/12 | gawk '{split($4, a, "/"); print a[1]; exit 0}') --with-my-user-group --enable-layout=inplace --enable-developer --enable-externalauth --enable-gpg --enable-smime && mkdir -p /rt/var && make testdeps"
       - name: Run RT tests
         shell: bash
@@ -113,7 +113,7 @@ jobs:
           docker network create rt
           docker run --network rt --name postgresql --mount type=tmpfs,destination=/var/lib/postgresql/data -e POSTGRES_PASSWORD=password -d postgres:9.6
           docker build --network rt -t rt-base .
-          docker run -d -v $GITHUB_WORKSPACE:/rt --network rt --name rt rt-base
+          docker run -d -v $GITHUB_WORKSPACE:/rt --env RT_TEST_DB_HOST=postgresql --network rt --name rt rt-base
           docker exec rt bash -c "chown -R rt-user /rt; touch /etc/apache2/mime.types"
           docker exec -e USER=rt-user -u rt-user rt bash -c "cd /rt && ./configure.ac --with-db-type=Pg --with-db-host=postgresql --with-my-user-group --enable-layout=inplace --with-web-handler=fcgid --enable-developer --enable-externalauth --enable-gpg --enable-smime && mkdir -p /rt/var && make testdeps && chmod a+rX /rt/sbin/*"
       - name: Run RT tests

-----------------------------------------------------------------------

Summary of changes:
 .github/workflows/github-action.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
rt


More information about the rt-commit mailing list