diff options
author | 2019-06-30 15:57:00 -0700 | |
---|---|---|
committer | 2019-06-30 15:57:00 -0700 | |
commit | 7a11085fc916ec226c143bece9f6f1bd79f70e2c (patch) | |
tree | 11ce37f49199a224ef5459446bedf3f09d07ba29 | |
parent | CI: don't run the build job if nothing needs to be built (diff) |
CI: specify build context for Docker builds
-rw-r--r-- | azure-pipelines.yml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 8917306..4ea57ee 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -22,6 +22,7 @@ jobs: repository: pythondiscord/snekbox-base tags: latest Dockerfile: docker/base.Dockerfile + buildContext: . - task: Docker@2 displayName: 'Build Development Image' @@ -30,6 +31,7 @@ jobs: repository: pythondiscord/snekbox-venv tags: dev Dockerfile: docker/venv.Dockerfile + buildContext: . arguments: --build-arg DEV=1 - script: | @@ -129,6 +131,7 @@ jobs: repository: pythondiscord/snekbox-base tags: latest Dockerfile: docker/base.Dockerfile + buildContext: . - task: Docker@2 displayName: 'Build Virtual Environment Image' @@ -145,6 +148,7 @@ jobs: repository: pythondiscord/snekbox-venv tags: latest Dockerfile: docker/venv.Dockerfile + buildContext: . - task: Docker@2 displayName: 'Build Final Image' @@ -154,6 +158,7 @@ jobs: repository: pythondiscord/snekbox tags: latest Dockerfile: docker/Dockerfile + buildContext: . - task: Docker@2 displayName: 'Push Base Image' |