Skip to content

Commit

Permalink
Merge branch 'rel-10_1' into rel-11_0
Browse files Browse the repository at this point in the history
  • Loading branch information
bschmalhofer committed Jul 29, 2024
2 parents e040c72 + fd22f13 commit ee6ceeb
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions .github/workflows/docker_image_builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,19 @@ jobs:

runs-on: 'ubuntu-latest'

strategy:

# create two different images
matrix:
target: [ 'otobo-web', 'otobo-web-kerberos', ]
include:
- target: 'otobo-web'
dockerfile: 'otobo.web.dockerfile'
tag_prefix: 'devel'
- target: 'otobo-web-kerberos'
dockerfile: 'otobo.kerberos.web.dockerfile'
tag_prefix: 'devel-kerberos'

steps:

-
Expand All @@ -28,7 +41,7 @@ jobs:
name: Setup
run: |
branch="${{ github.ref_name }}" # e.g rel-10_0
docker_tag="devel-$branch"
docker_tag="${{ matrix.tag_prefix }}-$branch"
mixed_case_repository="${{ github.repository }}" # e.g. RotherOSS/otobo
lowercased_repository="${mixed_case_repository,,}" # e.g. rotheross/otobo
build_date=$(date -u +'%Y-%m-%dT%H:%M:%SZ')
Expand All @@ -55,7 +68,7 @@ jobs:
with:
load: true
context: .
file: otobo.web.dockerfile
file: ${{ matrix.dockerfile }}
pull: true
build-args: |
BUILD_DATE=${{ env.otobo_build_date }}
Expand All @@ -64,7 +77,7 @@ jobs:
GIT_BRANCH=${{ env.otobo_branch }}
GIT_COMMIT=${{ env.otobo_commit }}
tags: ${{ env.otobo_ref }}
target: otobo-web
target: ${{ matrix.target }}
cache-from: type=gha
cache-to: type=gha,mode=max`

Expand All @@ -91,7 +104,7 @@ jobs:
with:
push: true
context: .
file: otobo.web.dockerfile
file: ${{ matrix.dockerfile }}
pull: true
build-args: |
BUILD_DATE=${{ env.otobo_build_date }}
Expand All @@ -100,6 +113,6 @@ jobs:
GIT_BRANCH=${{ env.otobo_branch }}
GIT_COMMIT=${{ env.otobo_commit }}
tags: ${{ env.otobo_ref }}
target: otobo-web
target: ${{ matrix.target }}
cache-from: type=gha
cache-to: type=gha,mode=max`

0 comments on commit ee6ceeb

Please sign in to comment.