Skip to content

Instantly share code, notes, and snippets.

@guitarrapc
Last active December 22, 2018 19:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guitarrapc/96cd1bafd9a6e6a5b9fe4b686153b498 to your computer and use it in GitHub Desktop.
Save guitarrapc/96cd1bafd9a6e6a5b9fe4b686153b498 to your computer and use it in GitHub Desktop.
using docker
image: Ubuntu1804
version: '1.0.{build}'
shallow_clone: false
skip_branch_with_pr: true
services:
- docker
branches:
only:
- master
environment:
PS_GELLERY_RELEASE_API:
secure: xBR5JNFYMUisp+oIx08EbfQ5xWsToa0XufJKuyaazeXy9wYcs6Fezw//NtW60uOF
GITHUB_RELEASE_API:
secure: s55znS9PHRv9SOXWiAmrxjj9c166WrBKTFz7cQmA0wLp9tGzREudX8XmaqbQH3YT
GUID: 11da18bb-f0d4-4509-b709-8b17efd8bb17
install:
- pwsh --version
before_build:
- docker build -t utf8bomheader_build:latest .
- docker image ls
build: off
build_script:
- docker run --rm -v "${APPVEYOR_BUILD_FOLDER}/publish:/app/publish" utf8bomheader_build:latest "./build_psd1.ps1 -Version ${APPVEYOR_BUILD_VERSION}"
- 7z a "${APPVEYOR_BUILD_FOLDER}/publish/Utf8BomHeader_${APPVEYOR_BUILD_VERSION}.zip" "${APPVEYOR_BUILD_FOLDER}/publish/Utf8BomHeader/"
test_script:
- docker run --rm utf8bomheader_build:latest "Invoke-Pester -CodeCoverage src/Utf8BomHeader.psm1"
deploy_script:
- pwsh -file ./deploy_pagallery.ps1 -NuGetApiKey ${PS_GELLERY_RELEASE_API} -BuildBranch master -ModuleName Utf8BomHeader
artifacts:
- path: ./publish/Utf8BomHeader_${APPVEYOR_BUILD_VERSION}.zip
name: Utf8BomHeader_${APPVEYOR_BUILD_VERSION}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment