2727 GOPRIVATE : github.com/stackql/*
2828 GH_ACCESS_TOKEN : ${{ secrets.ACTIONS_PRIVATE_PACKAGE_SECRET }}
2929 PLANCACHEENABLED : " true"
30+ CI_IS_EXPRESS : ${{ github.ref_type == 'tag' && contains(github.ref_name, 'express') && 'true' || 'false' }}
3031
3132jobs :
3233
@@ -1167,6 +1168,7 @@ jobs:
11671168
11681169 - name : Build Stackql image with buildx
11691170 uses : docker/build-push-action@v5
1171+ if : ${{ (github.repository == 'stackql/stackql' || github.repository == 'stackql/stackql-devel') }}
11701172 with :
11711173 context : .
11721174 build-args : |
@@ -1175,9 +1177,9 @@ jobs:
11751177 BUILDPATCHVERSION=${{env.BUILDPATCHVERSION}}
11761178 push : false
11771179 target : app
1178- no-cache : true
1180+ no-cache : ${{ vars.CI_DOCKER_BUILD_NO_CACHE == ' true' && true || false }}
11791181 load : true
1180- tags : stackql/stackql :${{github.sha}},stackql/stackql :v${{env.BUILDMAJORVERSION}}.${{env.BUILDMINORVERSION}}.${{env.BUILDPATCHVERSION}},stackql/stackql :latest
1182+ tags : ${{ github.repository }} :${{github.sha}},${{ github.repository }} :v${{env.BUILDMAJORVERSION}}.${{env.BUILDMINORVERSION}}.${{env.BUILDPATCHVERSION}},${{ github.repository }} :latest
11811183
11821184 - name : Debug info
11831185 run : |
@@ -1213,13 +1215,13 @@ jobs:
12131215 echo ""
12141216
12151217 - name : Run robot mocked functional tests
1216- if : success()
1218+ if : success() && env.CI_IS_EXPRESS != 'true'
12171219 timeout-minutes : ${{ vars.DEFAULT_STEP_TIMEOUT_MIN == '' && 20 || vars.DEFAULT_STEP_TIMEOUT_MIN }}
12181220 run : |
12191221 python cicd/python/build.py --robot-test --config='{ "variables": { "EXECUTION_PLATFORM": "docker" } }'
12201222
12211223 - name : Run POSTGRES BACKEND robot mocked functional tests
1222- if : success()
1224+ if : success() && env.CI_IS_EXPRESS != 'true'
12231225 timeout-minutes : ${{ vars.DEFAULT_STEP_TIMEOUT_MIN == '' && 20 || vars.DEFAULT_STEP_TIMEOUT_MIN }}
12241226 run : |
12251227 echo "## Stray flask apps to be killed before robot tests ##"
@@ -1239,7 +1241,7 @@ jobs:
12391241 python cicd/python/build.py --robot-test --config='{ "variables": { "EXECUTION_PLATFORM": "docker", "SHOULD_RUN_DOCKER_EXTERNAL_TESTS": true, "SQL_BACKEND": "postgres_tcp" } }'
12401242
12411243 - name : Output from mocked functional tests
1242- if : always()
1244+ if : always() && env.CI_IS_EXPRESS != 'true'
12431245 run : |
12441246 cat ./test/robot/reports/output.xml
12451247
@@ -1268,10 +1270,11 @@ jobs:
12681270 sudo rm -rf cicd/vol/postgres/persist
12691271
12701272 - name : Push stackql image to Docker Hub
1271- if : ${{ ( success( ) && github.ref_type == 'branch ' && github.ref_name == 'main ' && github.repository == 'stackql/stackql ' && github.event_name == 'push' ) || ( success() && github.ref_type == 'tag' && startsWith(github.ref_name, 'build-release') ) }}
1273+ if : ${{ (github.repository == 'stackql/stackql' || github.repository == 'stackql/stackql-devel' ) && vars.CI_SKIP_DOCKER_PUSH != 'true ' && ( success() && github.ref_type == 'branch ' && github.ref_name == 'main ' && github.event_name == 'push' ) || ( success() && github.ref_type == 'tag' && startsWith(github.ref_name, 'build-release') ) }}
12721274 uses : docker/build-push-action@v5
12731275 with :
12741276 context : .
1277+ no-cache : ${{ vars.CI_DOCKER_BUILD_NO_CACHE == 'true' && true || false }}
12751278 platforms : linux/arm64,linux/amd64
12761279 build-args : |
12771280 BUILDMAJORVERSION=${{env.BUILDMAJORVERSION}}
@@ -1280,5 +1283,5 @@ jobs:
12801283 RUN_INTEGRATION_TESTS=0
12811284 push : true
12821285 target : app
1283- tags : stackql/stackql :${{github.sha}},stackql/stackql :v${{env.BUILDMAJORVERSION}}.${{env.BUILDMINORVERSION}}.${{env.BUILDPATCHVERSION}},stackql/stackql :latest
1286+ tags : ${{ github.repository }} :${{github.sha}},${{ github.repository }} :v${{env.BUILDMAJORVERSION}}.${{env.BUILDMINORVERSION}}.${{env.BUILDPATCHVERSION}},${{ github.repository }} :latest
12841287
0 commit comments