Skip to content

Commit

Permalink
Issue #3673: First docker update review for OTOBO 11_0.
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanRother-OTOBO committed Oct 28, 2024
1 parent 8915fad commit a33252f
Showing 1 changed file with 38 additions and 9 deletions.
47 changes: 38 additions & 9 deletions .github/workflows/docker_image_update_checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,33 +15,62 @@ on:
# The trigger on 'schedule' allows to run daily. Time is in UTC declared in cron syntax.
# The scheduled jobs run only on the default branch.
schedule:
- cron: '37 6 * * *'
- cron: '37 2 * * *'

jobs:
CheckDockerImageUpdate:
runs-on: 'ubuntu-latest'
strategy:

# set up a loop over OTOBO branches
# create different images
# note that there is no release build for the otobo-web-kerberos target
matrix:
major_minor: [ '11_0', '11_1', ]
target: [ 'otobo-web', 'otobo-elasticsearch', 'otobo-nginx-webproxy', 'otobo-nginx-kerberos-webproxy', 'otobo-selenium-chrome' ]
patch: [ '11_0_1', '11_0_2', '11_0_3', '11_0_4', '11_0_5', '11_0_6' ]
include:
- major_minor: '11_0'
-
target: 'otobo-web'
dockerfile: 'otobo.web.dockerfile'
context: '.'
repository: 'rotheross/otobo'
base_image: 'perl:5.38-bookworm'
- major_minor: '11_1'
base_image: 'perl:5.40-slim-bookworm'
-
target: 'otobo-elasticsearch'
dockerfile: 'otobo.elasticsearch.dockerfile'
context: 'scripts/elasticsearch'
repository: 'rotheross/otobo-elasticsearch'
base_image: 'docker.elastic.co/elasticsearch/elasticsearch:7.17.25'
-
target: 'otobo-nginx-webproxy'
dockerfile: 'otobo.nginx.dockerfile'
context: 'scripts/nginx'
repository: 'rotheross/otobo-nginx-webproxy'
base_image: 'nginx:mainline'
-
target: 'otobo-nginx-kerberos-webproxy'
dockerfile: 'otobo.nginx.dockerfile'
context: 'scripts/nginx'
repository: 'rotheross/otobo-nginx-kerberos-webproxy'
base_image: 'nginx:mainline'
-
target: 'otobo-selenium-chrome'
dockerfile: 'otobo.selenium-chrome.dockerfile'
context: 'scripts/test/sample'
repository: 'rotheross/otobo-selenium-chrome'
base_image: 'selenium/standalone-chrome-debug:3.141.59-20210422'


steps:

- name: Setting up the environment file
run: |
major_minor="${{ matrix.major_minor }}"
docker_tag="devel-${major_minor}_test"
patch="${{ matrix.patch }}"
docker_tag="rel-${patch}_test"
mixed_case_repository="${{ github.repository }}"
lowercased_repository="${mixed_case_repository,,}"
build_date=$(date -u +'%Y-%m-%dT%H:%M:%SZ')
(
echo "otobo_branch=rel-${major_minor}"
echo "otobo_branch=rel-${patch}"
echo "otobo_base_image=${{ matrix.base_image }}"
echo "otobo_docker_tag=${docker_tag}"
echo "otobo_image=${lowercased_repository}:${docker_tag}"
Expand Down

0 comments on commit a33252f

Please sign in to comment.