Concourse cant build and deploy to docker, I get this error:
invalid argument "http://10.250.249.243:5000/frontend-srv-img:latest" for t: Error parsing reference: "http://10.250.249.243:5000/frontend-srv-img:latest" is not a valid repository/tag See 'docker build --help'.
I am trying to build a frontend source-repo in a task, resulting in a dist: frontend-dist.
Then I want to use this dist in the "put" to my local docker registry, so i provide the "put" with the dist folder and the docker file path. Note: the dist and docker file come from different repos/branches.
---
#Git repo containing docker-template and build scripts:
resources:
- name: devops-repo
type: git
source:
uri: git@bitbucket.org:myorg/client-devops.git
branch: dev
private_key: {{private-key}}
#Git repo containing docker-template and build scripts:
- name: client-repo
type: git
source:
uri: git@bitbucket.org:myorg/client-devops.git
branch: frontend
private_key: {{private-key}}
#Docker-image containing the built source:
- name: frontend-server-image
type: docker-image
source:
repository: http://10.250.249.243:5000/frontend-srv-img
insecure_registries: ["http://10.250.249.243:5000"]
jobs:
- name: job-frontend
public: true
plan:
- aggregate:
- get: devops-repo
trigger: true
- get: client-repo
trigger: true
- task: Build frontend using grunt
file: devops-repo/build-frontend.yml
- put: frontend-server-image
params:
build: frontend-dist
dockerfile: devops-repo/frontend-server/Dockerfile
build-frontend.yml
---
platform: linux
image_resource:
type: docker-image
source:
repository: node
tag: 'latest'
inputs:
- name: client-repo
outputs:
- name: frontend-dist
run:
path: sh
args:
- -exc
- |
ls -lah
cd client-repo
# npm install -g grunt-cli
# npm install -q
# grunt pipeline
mkdir dist
touch dist/test123
mv -f dist ../frontend-dist
cd ..
ls -lah