diff --git a/.dockerignore b/.dockerignore index e2b2d71..9c1c116 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,9 +1,29 @@ - +# Docker build context exclusions .git +.github +.gitea +docs +*.md +!.markdownlint.yaml .idea -**/.idea -**/node_modules - -**/dist -**/.gradle -**/.angular +*.iml +node_modules +.gradle +build +dist +.DS_Store +*.log +*.tmp +*.swp +*~ +# Frontend build artifacts (built inside Docker) +frontend/dist +frontend/.angular +# Backend build artifacts (built inside Docker) +backend/build +backend/libs +# Test reports +backend/build/reports +# Secrets +.env +.env.* diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..53aa03e --- /dev/null +++ b/.drone.yml @@ -0,0 +1,38 @@ +kind: pipeline +type: docker +name: build-test + +trigger: + event: + - pull_request + +steps: + - name: build-test + image: plugins/docker + settings: + dockerfile: Dockerfile + context: . +--- +kind: pipeline +type: docker +name: build-and-push + +trigger: + event: + - push + branch: + - master + +steps: + - name: build-and-push + image: plugins/docker + settings: + dockerfile: Dockerfile + context: . + registry: gitea.jambotron.com + repo: gitea.jambotron.com/liosha84/htop-web + tags: ${DRONE_COMMIT_SHA},main-latest + username: + from_secret: REGISTRY_USERNAME + password: + from_secret: REGISTRY_PASSWORD diff --git a/.idea/compiler.xml b/.idea/compiler.xml index fea4714..802f543 100644 --- a/.idea/compiler.xml +++ b/.idea/compiler.xml @@ -1,5 +1,12 @@ + + + + + + +