Skip to content

Commit

Permalink
chore: move files
Browse files Browse the repository at this point in the history
  • Loading branch information
tristiisch committed Sep 30, 2024
1 parent 62f29b2 commit 571d7ed
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 10 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 4 additions & 6 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ on:
- "src/**/*.py"
- "requirements.txt"
- ".dockerignore"
- "entrypoint.sh"
- "Dockerfile"
- "./.docker/Dockerfile"
- "docker-compose*.yml"
- ".github/workflows/python.yml"
pull_request:
Expand All @@ -23,8 +22,7 @@ on:
- "tests/**/*.py"
- "requirements.txt"
- ".dockerignore"
- "entrypoint.sh"
- "Dockerfile"
- "./.docker/Dockerfile"
- "docker-compose*.yml"
- ".github/workflows/python.yml"
workflow_dispatch:
Expand Down Expand Up @@ -196,7 +194,7 @@ jobs:
id: build
uses: docker/build-push-action@v6
with:
file: ./Dockerfile
file: ./.docker/Dockerfile
target: executable
context: .
platforms: ${{ matrix.platform }}
Expand Down Expand Up @@ -244,7 +242,7 @@ jobs:
id: build
uses: docker/build-push-action@v6
with:
file: ./Dockerfile
file: ./.docker/Dockerfile
target: tests
context: .
tags: pyramid:tests
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
COMPOSE_SERVICE := discord
VENV_NAME := .venv
DOCKER_COMPOSE_FILE_DEV := docker-compose.dev.yml
DOCKER_COMPOSE_FILE_PREPROD := docker-compose.preprod.yml
DOCKER_COMPOSE_FILE_DEV := ./.docker/docker-compose.dev.yml
DOCKER_COMPOSE_FILE_PREPROD := ./.docker/docker-compose.preprod.yml
DOCKER_SERVICE_PREPROD := pyramid_preprod_pyramid
DOCKER_CONTEXT_PREPROD := cookie-pulsheberg

Expand Down Expand Up @@ -52,7 +52,7 @@ dev:
@docker compose -f $(DOCKER_COMPOSE_FILE_DEV) up -d --remove-orphans --pull always --force-recreate

tests:
@docker build -f Dockerfile --target tests -t pyramid:tests .
@docker build -f ./.docker/Dockerfile --target tests -t pyramid:tests .
@mkdir -p ./coverage && chmod 777 ./coverage
@docker run --rm --env-file ./.env -v ./coverage:/app/coverage -it pyramid:tests

Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
services:
discord:
build:
dockerfile: ./Dockerfile
dockerfile: ./.docker/Dockerfile
target: executable-dev
context: .
restart: no
Expand Down

0 comments on commit 571d7ed

Please sign in to comment.