Skip to content

Commit

Permalink
Use authenticatedContainerRegistries config for 1es template
Browse files Browse the repository at this point in the history
  • Loading branch information
hallipr committed Apr 2, 2024
1 parent 977049c commit c99f4ec
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 2 additions & 0 deletions eng/pipelines/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ trigger:
extends:
template: /eng/pipelines/templates/1es-redirect.yml
parameters:
authenticatedContainerRegistries:
- serviceConnection: azsdkengsys
stages:
- stage: npm
pool:
Expand Down
4 changes: 4 additions & 0 deletions eng/pipelines/templates/1es-redirect.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ parameters:
- name: Use1ESOfficial
type: boolean
default: true
- name: authenticatedContainerRegistries
type: object
default: []

extends:
${{ if and(parameters.Use1ESOfficial, eq(variables['System.TeamProject'], 'internal')) }}:
Expand All @@ -24,6 +27,7 @@ extends:
parameters:
settings:
skipBuildTagsForGitHubPullRequests: true
authenticatedContainerRegistries: ${{ parameters.authenticatedContainerRegistries }}
sdl:
git:
longpaths: true
Expand Down
6 changes: 0 additions & 6 deletions eng/pipelines/templates/build-and-push-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,6 @@ jobs:
inputs:
dockerVersion: "17.09.0-ce"

- task: Docker@2
displayName: Login to ACR
inputs:
command: login
containerRegistry: azsdkengsys

- script: |
docker build -t ${{ parameters.image }} .
displayName: Build image
Expand Down

0 comments on commit c99f4ec

Please sign in to comment.