-
Notifications
You must be signed in to change notification settings - Fork 2
/
azure-pipelines.acr-mirror.yml
52 lines (44 loc) · 1.55 KB
/
azure-pipelines.acr-mirror.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Mirror official Graphistry images from Graphistry DockerHub to a private Azure ACR
# Configuration:
# In your Azure pipeline, add variables:
# ACR_SERVICE_CONNECTION_NAME (public; Project settings -> Pipelines -> Service connections)
# ACR_NAME (public; your ACR short name)
# DOCKERHUB_USERNAME (public; your DockerHub service account ID with read access to Graphistry repos)
# DOCKERHUB_TOKEN (private; your DockerHub service account token with read access to Graphistry repos)
# GRAPHISTRY_VERSION (public; latest or value like v2.38.10)
trigger:
- none
resources:
- repo: self
pool:
vmImage: ubuntu-latest
stages:
- stage: Mirror
displayName: Copy Graphistry DockerHub containers to private ACR
jobs:
- job: Mirror2ACR
steps:
- task: bash@3
displayName: Bash CLI test
inputs:
targetType: 'inline'
failOnStderr: true
script: |
echo "howdy neighbor"
echo "I am here: `pwd`"
ls -alh
- task: AzureCLI@2
displayName: Azure CLI
inputs:
azureSubscription: $(ACR_SERVICE_CONNECTION_NAME)
scriptType: bash
scriptLocation: inlineScript
inlineScript: |
az --version
az account show
ACR_NAME=$(ACR_NAME)
DOCKERHUB_USERNAME=$(GRAPHISTRY_DOCKERHUB_USERNAME) \
DOCKERHUB_TOKEN=$(GRAPHISTRY_DOCKERHUB_PASSWORD) \
CUDA_SHORT_VERSION=$(CUDA_SHORT_VERSION) \
APP_BUILD_TAG=$(GRAPHISTRY_VERSION) \
./acr-bootstrap/import-image-into-acr-from-dockerhub.sh