I am a beginner at Docker. I have a Maven multi module project, each submodule is a SpringBoot microservice (so each submodule is executable). I have added Dockerfiles in each of the submodule and I want to run the Docker CI but it fails saying:
unable to prepare context: path "/discovery-service" not found
Discovery service is a maven submodule name. My docker.yaml is
name: Docker Image CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build the Docker image
run: |
docker build /discovery-service --file Dockerfile --tag my-image-name:$(date +%s)
docker build /config-server --file Dockerfile --tag my-image-name:$(date +%s)
docker build /gateway-service --file Dockerfile --tag my-image-name:$(date +%s)
docker build /business-owner-service --file Dockerfile --tag my-image-name:$(date +%s)
© 2020 GitHub, Inc.
How can I get the Dockerfiles to get created? I would like to use Github to deploy directly to Google Cloud Kubernetes