Skip to content

Commit 54d002a

Browse files
clean pipeline (#385)
* clean pipeline * cleanup
1 parent 9aec529 commit 54d002a

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

.pipelines/build.yaml

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ jobs:
2626
sshKeySecureFile: 'azure-pipelines-ssh-key-new'
2727
- script: |
2828
git config --global url.ssh://[email protected]/.insteadOf https://github.com/
29-
git config --global url."[email protected]:v3".insteadOf https://msazure.visualstudio.com
3029
displayName: 'Set up the Go workspace'
3130
3231
- script: |
@@ -81,28 +80,6 @@ jobs:
8180
inputs:
8281
version: '1.24.3'
8382

84-
- task: InstallSSHKey@0
85-
inputs:
86-
knownHostsEntry: |
87-
$(KNOWN_HOST_GITHUB)
88-
$(KNOWN_HOST_GITHUB_ECDSA)
89-
$(KNOWN_HOST_GITHUB_Ed25519)
90-
sshPublicKey: '$(SSH_PUBLIC_KEY)'
91-
sshKeySecureFile: 'azure-pipelines-ssh-key-new'
92-
93-
- task: AzureCLI@2
94-
inputs:
95-
azureSubscription: 'kva-azuredevops-gcm'
96-
scriptType: 'bash'
97-
scriptLocation: 'inlineScript'
98-
inlineScript: |
99-
# Obtain Azure DevOps access token
100-
aadToken=$(az account get-access-token --query accessToken --resource 499b84ac-1321-427f-aa17-267ca6975798 -o tsv)
101-
# Set git configuration for authentication
102-
git config --global http.extraheader "AUTHORIZATION: bearer $aadToken"
103-
git config --global url."ssh://[email protected]/".insteadOf "https://github.com/"
104-
displayName: 'Set git config'
105-
10683
- script: |
10784
make golangci-lint
10885
displayName: 'Run GolangCI-Lint'

0 commit comments

Comments
 (0)