Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 25 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 2.1

orbs:
ci-caching: jobcloud/ci-caching@3.1
ci-php: jobcloud/ci-php@2.4
ci-php: jobcloud/ci-php@2.7

workflows:
test-console-kafka-schema-registry:
Expand Down Expand Up @@ -40,3 +40,27 @@ workflows:
dependencyCheckSumFile: "./composer.json"
requires:
- ci-php/install-dependencies
daily:
triggers:
- schedule:
cron: "0 7 * * *"
filters:
branches:
only:
- main
jobs:
- ci-caching/build-docker-images:
context: dockerhub-credentials
name: build-docker-images
- ci-php/install-dependencies:
context: dockerhub-credentials
name: install-dependencies
dependencyCheckSumFile: "./composer.json"
requires:
- build-docker-images
- ci-php/composer-audit:
context: dockerhub-credentials
dependencyCheckSumFile: "./composer.json"
requires:
- build-docker-images
- install-dependencies
2 changes: 1 addition & 1 deletion docker/dev/php/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ RUN pecl channel-update pecl.php.net && \
php-ext-enable pcov rdkafka

# COMPOSER: install binary
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer --version=2.5.1

USER 'www-data'

Expand Down
17 changes: 17 additions & 0 deletions docker/docker-compose.ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
version: '3.2'
services:
php:
build:
context: dev/php
args:
HOST_USER_ID: ${USER_ID}
container_name: console-kafka-schema-registry-php
hostname: console-kafka-schema-registry-php
environment:
KAFKA_SCHEMA_REGISTRY_URL: 'jobcloud-kafka-schema-registry:9081'
extra_hosts:
- "jobcloud-kafka-schema-registry:host-gateway"
volumes:
- ../:/app/
working_dir: /app
tty: true