Skip to content

Commit

Permalink
issue #67: changed gh workflow to azure devops workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasCardin committed Jan 6, 2025
1 parent 65fa564 commit 888c350
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 49 deletions.
49 changes: 0 additions & 49 deletions .github/workflows/wiki-backup-workflow.yml

This file was deleted.

48 changes: 48 additions & 0 deletions azure-devops-workflows/cron-archive-backup-wiki.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
trigger: none
pr: none

schedules:
- cron: '0 6 * * 1'
displayName: Sync wiki every Monday at 6h00 UTC (1h00 EST)
branches:
include:
- main
always: true

pool:
vmImage: "ubuntu-latest"

variables:
- group: wiki-export

Check failure on line 16 in azure-devops-workflows/cron-archive-backup-wiki.yaml

View workflow job for this annotation

GitHub Actions / yaml-check / yaml-lint-check

16:3 [indentation] wrong indentation: expected 0 but found 2

stages:
- stage: SyncWiki

Check failure on line 19 in azure-devops-workflows/cron-archive-backup-wiki.yaml

View workflow job for this annotation

GitHub Actions / yaml-check / yaml-lint-check

19:3 [indentation] wrong indentation: expected 0 but found 2
displayName: "Synchronize Azure DevOps wiki to blob storage"
jobs:
- job: SyncWikiJob

Check failure on line 22 in azure-devops-workflows/cron-archive-backup-wiki.yaml

View workflow job for this annotation

GitHub Actions / yaml-check / yaml-lint-check

22:7 [indentation] wrong indentation: expected 4 but found 6
displayName: "Clone wiki and upload to Azure Storage"
steps:
- task: AzureCLI@2

Check failure on line 25 in azure-devops-workflows/cron-archive-backup-wiki.yaml

View workflow job for this annotation

GitHub Actions / yaml-check / yaml-lint-check

25:11 [indentation] wrong indentation: expected 8 but found 10
displayName: "Azure CLI Login"
inputs:
azureSubscription: $(serviceConnectionName)

- task: PowerShell@2
displayName: "Clone Azure DevOps wiki"
inputs:
targetType: "inline"
script: |
git config --global user.name "Azure DevOps Pipeline"
git config --global user.email "[email protected]"
git clone https://$(azureDevopsToken)@dev.azure.com/CFIA-DevOps-ACIA/AI-Lab/_git/AI-Lab.wiki ./wiki
- task: AzureFileCopy@4
displayName: "Upload wiki to Azure Blob Storage"
inputs:
SourcePath: "$(System.DefaultWorkingDirectory)/wiki"
azureSubscription: $(serviceConnectionName)
Destination: "AzureBlob"
storage: $(storageAccountName)
ContainerName: "wiki"
BlobPrefix: ""
cleanDestination: true

0 comments on commit 888c350

Please sign in to comment.