Skip to content

Commit

Permalink
ci(dockerbuild): docker build speed (#7741)
Browse files Browse the repository at this point in the history
* ci(dockerbuild): enhance speed of workflow

Signed-off-by: moabu <47318409+moabu@users.noreply.github.com>

* ci(dockerbuild): enhance speed of workflow

Signed-off-by: moabu <47318409+moabu@users.noreply.github.com>

* ci(dockerbuild): enhance speed of workflow

Signed-off-by: moabu <47318409+moabu@users.noreply.github.com>

---------

Signed-off-by: moabu <47318409+moabu@users.noreply.github.com>
  • Loading branch information
moabu committed Feb 19, 2024
1 parent eeadf69 commit 218d5ea
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/docker_build_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@ jobs:
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0
sparse-checkout: docker-jans-${{ matrix.docker-images }}

sparse-checkout: |
docker-jans-${{ matrix.docker-images }}
automation
- name: Check docker directories that changed
id: build_docker_image
run: |
Expand Down Expand Up @@ -136,9 +137,9 @@ jobs:
echo "tags=${TAGS}" >> $GITHUB_OUTPUT
echo "build=${BUILD}" >> $GITHUB_OUTPUT
echo "dockerfilelocation=${DOCKER_FILE_LOCATION}" >> $GITHUB_OUTPUT
if [[ ! $VERSION =~ "_dev" ]]; then
# wait for all images in DEFAULT_ALL to be built before building the all-in-one image as it depends on all other images
if [[ "docker-jans-all-in-one" =~ "${{ matrix.docker-images }}" ]]; then
# wait for all images in DEFAULT_ALL to be built before building the all-in-one image as it depends on all other images
if [[ "docker-jans-all-in-one" =~ "${{ matrix.docker-images }}" ]]; then
if [[ ${{ github.event_name != 'pull_request' }} ]]; then
TEMP_IMG="auth-server certmanager config-api configurator fido2 persistence-loader scim monolith loadtesting-jmeter link casa saml keycloak-link"
for i in $TEMP_IMG; do
TEMP_TOKEN=$(curl https://ghcr.io/token\?scope\="repository:janssenproject/jans/$i:pull" | jq -r '.token')
Expand Down

0 comments on commit 218d5ea

Please sign in to comment.