Skip to content

Commit

Permalink
Merge pull request #12 from dreamvo/feat/dockerCI
Browse files Browse the repository at this point in the history
Fix Docker image build context in CI
  • Loading branch information
sundowndev authored Aug 15, 2020
2 parents 1f04f95 + 709c730 commit 01eb4c0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ jobs:
name: dreamvo/gilfoyle
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
context: .
workdir: support/docker
1 change: 1 addition & 0 deletions support/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ LABEL maintainer="Sundowndev" \
org.label-schema.schema-version="0.1"

WORKDIR /app
RUN apk add build-base
COPY . .
RUN go get -v -t -d ./...
RUN go generate ./...
Expand Down
4 changes: 2 additions & 2 deletions support/docker/docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ services:
gilfoyle:
restart: on-failure
build:
context: .
dockerfile: Dockerfile
context: ../../
dockerfile: support/docker/Dockerfile
command:
- "serve -p 3000"
ports:
Expand Down

0 comments on commit 01eb4c0

Please sign in to comment.