Add target to docker_images var

The target parameter should be included into the image definition.

Change-Id: I5c18fb46b725f76f12ef415dce0b7f442e067a83
This commit is contained in:
Daniel Pawlik 2023-01-18 11:25:41 +01:00
parent a369aa0159
commit 30b1a75d3c
3 changed files with 5 additions and 12 deletions

View File

@ -44,10 +44,12 @@
docker_images:
- context: .
repository: cilogprocessing/logscraper
target: logscraper
tags:
&imagetag "{{ zuul.tag is defined | ternary([zuul.get('tag', '').split('.')[0], '.'.join(zuul.get('tag', '').split('.')[:2]), zuul.get('tag', '')], ['latest']) }}"
- context: loggearman/
repository: cilogprocessing/loggearman
target: loggearman
tags:
*imagetag
@ -60,16 +62,7 @@
name: docker_credentials
secret: cilogprocessing-docker
pass-to-parent: true
vars:
docker_images:
- context: .
repository: cilogprocessing/logscraper
tags:
*imagetag
- context: loggearman/
repository: cilogprocessing/loggearman
tags:
*imagetag
vars: *cilogprocessing_image_vars
dependencies:
- name: openstack-tox-pep8
soft: true

View File

@ -13,7 +13,7 @@
# License for the specific language governing permissions and limitations
# under the License.
FROM quay.io/centos/centos:stream8
FROM quay.io/centos/centos:stream8 as logscraper
ENV PATH=/workspace/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ENV LANG=en_US.UTF-8

View File

@ -13,7 +13,7 @@
# License for the specific language governing permissions and limitations
# under the License.
FROM quay.io/centos/centos:stream8
FROM quay.io/centos/centos:stream8 as loggearman
ENV OSLO_PACKAGE_VERSION='0.0.1'
ENV PATH=~/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin