Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Wellbore Domain Services
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSDU
OSDU Data Platform
Domain Data Management Services
Wellbore
Wellbore Domain Services
Commits
259340be
Commit
259340be
authored
3 years ago
by
Alexandre Vincent
Browse files
Options
Downloads
Patches
Plain Diff
parameterize docker image app_name for push and pull to/from central acrs
parent
58b0d378
No related branches found
No related tags found
2 merge requests
!315
parameterize docker image app_name for push and pull to/from central acrs
,
!314
parameterize docker image app_name for push and pull to/from central acrs
Checking pipeline status
Changes
2
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
devops/azure/template/pull_image_from_central_acr.yaml
+3
-2
3 additions, 2 deletions
devops/azure/template/pull_image_from_central_acr.yaml
devops/azure/template/push_image_to_central_acrs.yaml
+6
-3
6 additions, 3 deletions
devops/azure/template/push_image_to_central_acrs.yaml
with
9 additions
and
5 deletions
devops/azure/template/pull_image_from_central_acr.yaml
+
3
−
2
View file @
259340be
...
...
@@ -23,6 +23,7 @@ parameters:
centralAzureSubscription
:
'
'
#Subscription to a central ACR from which to pull the container
sourceACRName
:
'
'
imageTag
:
'
'
appName
:
'
os-wellbore-ddms'
steps
:
-
task
:
AzureCLI@2
...
...
@@ -40,5 +41,5 @@ steps:
echo "az acr login -n ${{ parameters.sourceACRName }}"
az acr login -n ${{ parameters.sourceACRName }}
echo "docker pull ${{ parameters.sourceACRName}}.azurecr.io/
os-wellbore-ddms
:${{ parameters.imageTag }}"
docker pull ${{ parameters.sourceACRName}}.azurecr.io/
os-wellbore-ddms
:${{ parameters.imageTag }}
echo "docker pull ${{ parameters.sourceACRName}}.azurecr.io/
${{ parameters.appName }}
:${{ parameters.imageTag }}"
docker pull ${{ parameters.sourceACRName}}.azurecr.io/
${{ parameters.appName }}
:${{ parameters.imageTag }}
This diff is collapsed.
Click to expand it.
devops/azure/template/push_image_to_central_acrs.yaml
+
6
−
3
View file @
259340be
...
...
@@ -28,11 +28,14 @@ parameters:
type
:
string
-
name
:
acr_names
type
:
object
#List of string
-
name
:
app_name
type
:
string
default
:
os-wellbore-ddms
steps
:
-
${{ each acr_name in parameters.acr_names }}
:
- task
:
AzureCLI@2
displayName
:
'
push
image
to
acr
"${{
acr_name
}}"
"
'
displayName
:
'
push
to
"${{
acr_name
}}"'
inputs
:
azureSubscription
:
${{ parameters.azureSubscription }}
scriptType
:
bash
...
...
@@ -40,5 +43,5 @@ steps:
inlineScript
:
|
set -e
az acr login --name ${{ acr_name }}
docker tag wdms-osdu:$(tag_name) ${{ acr_name }}.azurecr.io/os-wellbore-ddms:$(tag_name)
docker push ${{ acr_name }}.azurecr.io/os-wellbore-ddms:$(tag_name)
\ No newline at end of file
docker tag wdms-osdu:$(tag_name) ${{ acr_name }}.azurecr.io/${{ parameters.app_name }}:$(tag_name)
docker push ${{ acr_name }}.azurecr.io/${{ parameters.app_name }}:$(tag_name)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment