Skip to content
Snippets Groups Projects
Commit 4d1f2012 authored by Alexandre Vincent's avatar Alexandre Vincent
Browse files

use app variable as image name for the build artifact

parent 259340be
No related branches found
No related tags found
1 merge request!316Use app as build image name
Pipeline #77950 failed
......@@ -30,7 +30,7 @@ parameters:
type: object #List of string
- name: app_name
type: string
default: os-wellbore-ddms
default: 'os-wellbore-ddms'
steps:
- ${{ each acr_name in parameters.acr_names }}:
......@@ -43,5 +43,5 @@ steps:
inlineScript: |
set -e
az acr login --name ${{ acr_name }}
docker tag wdms-osdu:$(tag_name) ${{ acr_name }}.azurecr.io/${{ parameters.app_name }}:$(tag_name)
docker tag $(app):$(tag_name) ${{ acr_name }}.azurecr.io/${{ parameters.app_name }}:$(tag_name)
docker push ${{ acr_name }}.azurecr.io/${{ parameters.app_name }}:$(tag_name)
......@@ -62,7 +62,7 @@ steps:
done
- task: Bash@3
displayName: 'build image'
displayName: 'build $(app) image'
inputs:
targetType: 'inline'
script: |
......@@ -70,8 +70,8 @@ steps:
echo $current_utc_date
echo ----- BUILD IMAGE ------------
docker build -t=wdms-osdu:$(tag_name) \
-t=wdms-osdu:latest \
docker build -t=$(app):$(tag_name) \
-t=$(app):latest \
--rm . -f ./build/Dockerfile \
--build-arg PIP_WHEEL_DIR=python-packages \
--build-arg build_date="$current_utc_date" \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment