Skip to content

Commit e19bac4

Browse files
authored
feat(MPM-658): composer update audit (#49)
1 parent f9e1ed3 commit e19bac4

File tree

3 files changed

+43
-2
lines changed

3 files changed

+43
-2
lines changed

.circleci/config.yml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: 2.1
22

33
orbs:
44
ci-caching: jobcloud/[email protected]
5-
ci-php: jobcloud/ci-php@2.4
5+
ci-php: jobcloud/ci-php@2.7
66

77
workflows:
88
test-console-kafka-schema-registry:
@@ -40,3 +40,27 @@ workflows:
4040
dependencyCheckSumFile: "./composer.json"
4141
requires:
4242
- ci-php/install-dependencies
43+
daily:
44+
triggers:
45+
- schedule:
46+
cron: "0 7 * * *"
47+
filters:
48+
branches:
49+
only:
50+
- main
51+
jobs:
52+
- ci-caching/build-docker-images:
53+
context: dockerhub-credentials
54+
name: build-docker-images
55+
- ci-php/install-dependencies:
56+
context: dockerhub-credentials
57+
name: install-dependencies
58+
dependencyCheckSumFile: "./composer.json"
59+
requires:
60+
- build-docker-images
61+
- ci-php/composer-audit:
62+
context: dockerhub-credentials
63+
dependencyCheckSumFile: "./composer.json"
64+
requires:
65+
- build-docker-images
66+
- install-dependencies

docker/dev/php/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ RUN pecl channel-update pecl.php.net && \
4141
php-ext-enable pcov rdkafka
4242

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

4646
USER 'www-data'
4747

docker/docker-compose.ci.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
version: '3.2'
2+
services:
3+
php:
4+
build:
5+
context: dev/php
6+
args:
7+
HOST_USER_ID: ${USER_ID}
8+
container_name: console-kafka-schema-registry-php
9+
hostname: console-kafka-schema-registry-php
10+
environment:
11+
KAFKA_SCHEMA_REGISTRY_URL: 'jobcloud-kafka-schema-registry:9081'
12+
extra_hosts:
13+
- "jobcloud-kafka-schema-registry:host-gateway"
14+
volumes:
15+
- ../:/app/
16+
working_dir: /app
17+
tty: true

0 commit comments

Comments
 (0)