Docker-Provider/.pipelines/pipeline.user.linux.yml

45 строки
2.2 KiB
YAML
Исходник Обычный вид История

Gangams/build pipeline (#374) * update readme * make kubecontext optional * fix minor text issue * script updates * script updates * update solution template paths * update readme * script updates * use local docker provider release shell bundle * simplify local build process * update readme * script update * doc updates * comment upgrade command to test in devops pipeline * run without sudo devops pipeline * move golang install to end * set go env at the end * set go env at the end * initial pipeline * update acr registry * fixed typo * add version info * cleanup docker build command * update ci build agent image * fix yaml issue * fix file permission for go * file permission * remove sudo and see if that helps * set rwe permission recursively * use latest app container image * move go get to build script * update build script * update the build script * add packages as workaround * revert makefile changes * revert changes * windows agent docker image script placeholder * use cidev tag for linux agent in the pipeline * add install pre-req for windows agent * add install pre-req for windows agent * fix temp path * update readme * add useragent for build agent * windows build pipeline * use psscript root instead of pwd * add restore step since buildstep doesnt have network access * update to use netcoreapp3.1 * add publish command to restore * use absolute path for go as workaround * add publish command back to restore * add missing envvars in restore * update env vars * invoke setx first * add restore command for go modules * remove go packages * dont set gopath variable * update to version 2.0 container * update readme * use 3.0 version * update 4.0 windows build agent * update to use version 5.0 windows container image * use --no-restore option * use absolute path for go * set explicit envvars * remove --no-restore option * final windows agent * update to use latest windows build agent machine * simplify local build for windows * update gitignore file * update the readme * add newline for missing ones * update readme with the instructions to use the code on wsl for windows agent development * minor cleanup * final readme updates * fix pr feedback * fix label * added maintainer and label for windows image
2020-06-27 03:25:47 +03:00
environment:
host:
os: 'linux'
flavor: 'ubuntu'
version: '16.04'
runtime:
provider: 'appcontainer'
image: 'cdpxlinux.azurecr.io/user/azure-monitor/container-insights:1.0'
version:
name: 'DockerProvider'
major: 10
minor: 0
tag: 'beta'
system: 'custom'
exclude_commit: true
restore:
commands:
- !!defaultcommand
name: 'get go modules'
command: '.pipelines/restore-linux.sh'
fail_on_stderr: false
build:
commands:
- !!defaultcommand
name: 'Build Docker Provider Shell Bundle'
command: '.pipelines/build-linux.sh'
fail_on_stderr: false
package:
commands:
- !!dockerbuildcommand # REQUIRED: This maps the command data to a concrete type in the CDPX orchestrator.
name: 'Build Docker Image' # REQUIRED: All commands have a name field. All console output captured when
# this command runs is tagged with the value of this field.
context_folder: 'kubernetes/linux' # REQUIRED: The repository root relative path of the folder containing the Dockerfile to build.
# In effect, the context folder will be repository_checkout_folder/src/DockerFinal.
dockerfile_name: 'Dockerfile' # OPTIONAL: The name of the dockerfile. Docker client does allow the Dockerfile
# to be named differently. Defaults to Dockerfile.
# In effect, the -f option value passed to docker build will be repository_checkout_folder/src/DockerFinal/Foo.dockerfile.
repository_name: 'cdpxlinux' # only supported ones are cdpx acr repos
tag: 'cidev' # OPTIONAL: Defaults to latest. The tag for the built image. Final tag will be 1.0.0alpha, 1.0.0-timestamp-commitID.
latest: false # OPTIONAL: Defaults to false. If tag is not set to latest and this flag is set, then tag as latest as well and push latest as well.