diff --git a/.github/workflows/workflow-build.yml b/.github/workflows/workflow-build.yml index 97de089..6d3e156 100644 --- a/.github/workflows/workflow-build.yml +++ b/.github/workflows/workflow-build.yml @@ -1,5 +1,3 @@ -# This is a basic workflow to help you get started with Actions - name: CI on: @@ -18,9 +16,9 @@ jobs: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} -# - name: Docker build branch -# run: make docker -# if: ${{ github.ref_type == 'branch' }} + - name: Docker build branch + run: make docker + if: ${{ github.ref_type == 'branch' }} - name: Docker build main run: make docker ARGS="-t latest" diff --git a/src/dockerBuild.sh b/src/dockerBuild.sh index 2ba59a1..b78deaa 100755 --- a/src/dockerBuild.sh +++ b/src/dockerBuild.sh @@ -147,7 +147,7 @@ function dockerBuild buildCmd="${buildCmd} -t $DOCKER_REGISTRY/$DOCKER_REPO:$i" done buildCmd="${buildCmd} --cache-from type=registry,ref=$DOCKER_REGISTRY/$DOCKER_REPO" - buildCmd="${buildCmd} --cache-to type=registry,ref=$DOCKER_REGISTRY/$DOCKER_REPO,mode=max" + buildCmd="${buildCmd} --cache-to type=inline" buildCmd="${buildCmd} -f $DOCKER_FILE $BUILD_CONTEXT_DIR 2>&1" #Create a new builder instance