Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
1.0 kB
2
Indexable
Never
trigger:
  - main
pool:
  vmImage: ubuntu-latest
steps:
  - template: build.yml
    parameters:
      DATABASEURL: "bla"
      NEXTAUTHSECRET: "bla"
      NEXTAUTHURL: "https://www.mbl.is/frettir/"
      DIGITALICELANDAPPID: "bla"
      DIGITALICELANDAPPSECRET: "bla"
      DIGITALICELANDAUTHSERVER: "bla"
      AZUREBLOBCONNNECTIONSTRING: "bla"
      AZUREBLOBCONTAINERNAME: "bla"
      SKIPENVVALIDATION: true
  - task: CopyFiles@2
    inputs:
      SourceFolder: ./
      Contents: |
        .next/**
        public/**
        node_modules/**
        next.config.mjs
        package.json
        package-lock.json
      TargetFolder: ./deployable
      OverWrite: true
  - script: cd ./deployable && zip -r --symlinks
      '$(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip' . && cd
      $(System.DefaultWorkingDirectory)
  - task: PublishBuildArtifacts@1
    inputs:
      PathtoPublish: $(Build.ArtifactStagingDirectory)/
      ArtifactName: build
      publishLocation: Container