Andy Carter
02/14/2024, 12:26 PMmeltano install
step due to git permissions.
I've tried adding a git ssh key, including the repos as resource definitions, using a Azure Repos service connection, nothing got me very far. Any pointers welcome.visch
02/14/2024, 5:02 PMAndy Carter
02/15/2024, 9:59 AMARG
in my Dockerfile and keep expecting variables to be accessible to docker by magic... 😞Andy Carter
02/15/2024, 4:15 PMvariables:
- ${{ if eq(variables['Build.SourceBranchName'], 'main') }}:
- group: main
- ${{ else }}:
- group: dev
resources:
repositories:
- repository: tap-funky-custom-api
type: git
name: MyProject/tap-funky-custom-api
name: $(SourceBranchName)-$(Date:yyyyMMdd)-$(Rev:r)
trigger:
branches:
include:
- main
- dev
pool:
vmImage: ubuntu-latest
stages:
- stage: 'Deploy'
jobs:
- job: 'DockerDeployment'
uses:
repositories: # List of referenced repositories
- tap-funky-custom-api
steps:
- task: Docker@2
env:
ADO_TOKEN: $(System.AccessToken)
inputs:
command: 'build'
containerRegistry: $(SERVICE_CONN)
repository: $(REPOSITORY)
Dockerfile: '**/Dockerfile'
arguments: '--build-arg ado_token=$(System.AccessToken)'
tags: latest
- task: Docker@2
inputs:
command: 'push'
containerRegistry: $(SERVICE_CONN)
repository: $(REPOSITORY)
tags: latest