Skip to content

Commit

Permalink
chore: Use workdir
Browse files Browse the repository at this point in the history
  • Loading branch information
obalunenko committed Dec 18, 2022
1 parent 2b083b0 commit 545cb9d
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions deployments/docker-compose/go-tools-docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,49 +3,50 @@ version: '3'
services:
tools:
image: ghcr.io/obalunenko/go-tools:${GOTOOLS_IMAGE_TAG:-latest}
working_dir: /app/
volumes:
- ../../:/app/
fix-imports:
extends:
service: tools
entrypoint: /bin/sh -c 'cd /app/ && /app/scripts/style/fix-imports.sh'
entrypoint: /bin/sh -c './scripts/style/fix-imports.sh'

fix-fmt:
extends:
service: tools
entrypoint: /bin/sh -c 'cd /app/ &&/app/scripts/style/fmt.sh'
entrypoint: /bin/sh -c './scripts/style/fmt.sh'

run-tests:
extends:
service: tools
entrypoint: /bin/sh -c 'cd /app/ &&/app/scripts/tests/run.sh'
entrypoint: /bin/sh -c './scripts/tests/run.sh'

run-tests-coverage:
extends:
service: tools
entrypoint: /bin/sh -c 'cd /app/ && /app/scripts/tests/coverage.sh'
entrypoint: /bin/sh -c './scripts/tests/coverage.sh'

update-readme-coverage:
extends:
service: tools
entrypoint: /bin/sh -c 'cd /app/ && /app/scripts/update-readme-coverage.sh'
entrypoint: /bin/sh -c './scripts/update-readme-coverage.sh'

lint-full:
extends:
service: tools
entrypoint: /bin/sh -c 'cd /app/ && /app/scripts/linting/run-linters.sh'
entrypoint: /bin/sh -c './scripts/linting/run-linters.sh'

lint-pipeline:
extends:
service: tools
entrypoint: /bin/sh -c 'cd /app/ && /app/scripts/linting/golangci-pipeline.sh'
entrypoint: /bin/sh -c './scripts/linting/golangci-pipeline.sh'

lint-sonar:
extends:
service: tools
entrypoint: /bin/sh -c 'cd /app/ && /app/scripts/linting/golangci-sonar.sh'
entrypoint: /bin/sh -c './scripts/linting/golangci-sonar.sh'

go-generate:
extends:
service: tools
entrypoint: /bin/sh -c 'cd /app/ && /app/scripts/codegen/go-generate.sh'
entrypoint: /bin/sh -c './scripts/codegen/go-generate.sh'

0 comments on commit 545cb9d

Please sign in to comment.