Skip to content

Commit

Permalink
optimize docker server build frequency
Browse files Browse the repository at this point in the history
  • Loading branch information
parvit committed May 5, 2024
1 parent 0dce84e commit 9fb32f4
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions .github/workflows/common-performance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -321,20 +321,22 @@ jobs:
- name: Build Server
run: |
docker version
export GO_VERSION=${GO_VERSION}
export CMAKE_VERSION=${CMAKE_VERSION}
export GH_TOKEN=${GH_TOKEN}
export CACHE_KEY=${CACHE_KEY}
export QPEP_REPO=${QPEP_REPO}
export QPEP_BRANCH=${QPEP_BRANCH}
export QPEP_REV=${QPEP_REV}
export QPEP_CCA=${QPEP_CCA}
export QPEP_ADDRESS=${QPEP_ADDRESS}
export QPEP_BACKEND=${QPEP_BACKEND}
export QPEP_SLOWSTART=${QPEP_SLOWSTART}
export QPEP_GATEWAY=${QPEP_GATEWAY}
pushd docker/server-env/
docker compose build
if [ -z "$(docker images -q "project-faster/qpep-server:latest" 2> /dev/null)" ]; then
export GO_VERSION=${GO_VERSION}
export CMAKE_VERSION=${CMAKE_VERSION}
export GH_TOKEN=${GH_TOKEN}
export CACHE_KEY=${CACHE_KEY}
export QPEP_REPO=${QPEP_REPO}
export QPEP_BRANCH=${QPEP_BRANCH}
export QPEP_REV=${QPEP_REV}
export QPEP_CCA=${QPEP_CCA}
export QPEP_ADDRESS=${QPEP_ADDRESS}
export QPEP_BACKEND=${QPEP_BACKEND}
export QPEP_SLOWSTART=${QPEP_SLOWSTART}
export QPEP_GATEWAY=${QPEP_GATEWAY}
pushd docker/server-env/
docker compose build
fi
- name: Build Data Server
run: |
Expand Down

0 comments on commit 9fb32f4

Please sign in to comment.