-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #3673: Temporary tinkering for the latest tag.
- Loading branch information
Sven
committed
Oct 2, 2024
1 parent
d20b8b7
commit c3396c1
Showing
1 changed file
with
87 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
%YAML 1.1 | ||
--- | ||
|
||
# Workflow for building devel Docker images and pushing them to Docker hub. | ||
# See docker_image_builder_rel.yml for the workflow that builds | ||
# the release Docker images. | ||
name: 'DockerImageBuilderTmpLatest11' | ||
|
||
on: | ||
|
||
# Build a devel Docker image whenever there is a push into the listed branches. | ||
push: | ||
branches: | ||
- rel-11_0 | ||
|
||
jobs: | ||
BuildDockerImage: | ||
|
||
runs-on: 'ubuntu-latest' | ||
|
||
strategy: | ||
|
||
# create different images | ||
matrix: | ||
target: [ 'otobo-web', 'otobo-elasticsearch', 'otobo-nginx-webproxy', 'otobo-nginx-kerberos-webproxy', 'otobo-selenium-chrome' ] | ||
include: | ||
- | ||
target: 'otobo-web' | ||
dockerfile: 'otobo.web.dockerfile' | ||
context: '.' | ||
repository: 'rotheross/otobo' | ||
- | ||
target: 'otobo-elasticsearch' | ||
dockerfile: 'otobo.elasticsearch.dockerfile' | ||
context: 'scripts/elasticsearch' | ||
repository: 'rotheross/otobo-elasticsearch' | ||
- | ||
target: 'otobo-nginx-webproxy' | ||
dockerfile: 'otobo.nginx.dockerfile' | ||
context: 'scripts/nginx' | ||
repository: 'rotheross/otobo-nginx-webproxy' | ||
- | ||
target: 'otobo-nginx-kerberos-webproxy' | ||
dockerfile: 'otobo.nginx.dockerfile' | ||
context: 'scripts/nginx' | ||
repository: 'rotheross/otobo-nginx-kerberos-webproxy' | ||
- | ||
target: 'otobo-selenium-chrome' | ||
dockerfile: 'otobo.selenium-chrome.dockerfile' | ||
context: 'scripts/test/sample' | ||
repository: 'rotheross/otobo-selenium-chrome' | ||
|
||
steps: | ||
|
||
- | ||
# Store some variables in an environment file so that | ||
# they can be used in the later steps. | ||
name: Setup | ||
run: | | ||
branch="rel-11_0_6" # e.g rel-10_0 | ||
docker_tag="latest-11_0" | ||
build_date=$(date -u +'%Y-%m-%dT%H:%M:%SZ') | ||
( | ||
echo "otobo_branch=$branch" | ||
echo "otobo_docker_tag=$docker_tag" | ||
echo "otobo_ref=${{ matrix.repository }}:$docker_tag" | ||
echo "otobo_build_date=$build_date" | ||
echo "otobo_commit=${{ github.sha }}" | ||
) >> $GITHUB_ENV | ||
- name: 'check out the relevant OTOBO branch' | ||
uses: actions/checkout@v4 | ||
|
||
- | ||
# login to Docker Hub before the composite action | ||
# this avoids that secrets have to be passed | ||
name: Login to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- | ||
# Uses a local composite action. | ||
# The repository must already be checked out. | ||
name: 'Run local composite action' | ||
uses: ./.github/actions/docker_image_builder |