diff --git a/ci/build-docker.yml b/ci/build-docker.yml index 6539f52..929b5f8 100644 --- a/ci/build-docker.yml +++ b/ci/build-docker.yml @@ -2,15 +2,18 @@ platform: linux image_resource: type: registry-image - source: {repository: rust} + source: + repository: concourse/oci-build-task inputs: - name: repo +outputs: +- name: image + +params: + CONTEXT: repo/ + run: - path: sh - args: - - -exc - - | - echo building in docker - dir: "repo" + path: build + diff --git a/ci/pipeline.yml b/ci/pipeline.yml index a644fb3..82abe79 100644 --- a/ci/pipeline.yml +++ b/ci/pipeline.yml @@ -5,6 +5,11 @@ resources: - name: repo type: git source: {uri: "http://git.mdev.local/mitchell/school_app_api.git"} +- name: docker-image + type: registry-image + icon: docker + source: + repository: registry.mdev.local/school_app_api jobs: - name: test @@ -30,6 +35,9 @@ jobs: file: repo/ci/build-linux.yml - task: build-docker file: repo/ci/build-docker.yml + - put: docker-image + params: + image: image/image.tar - name: deploy plan: