Skip to content

Commit 7a57711

Browse files
author
Alessandro Arici
committed
Upgrade dependencies
1 parent a0672ba commit 7a57711

File tree

6 files changed

+22
-16
lines changed

6 files changed

+22
-16
lines changed

.semaphore/build-deploy.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ global_job_config:
2121
value: sineverba
2222
- name: DOCKER_IMAGE
2323
value: php74xc
24+
- name: BUILDX_VERSION
25+
value: 0.7.1
26+
- name: BINFMT_VERSION
27+
value: qemu-v6.2.0-25
2428

2529
blocks:
2630
- name: 'Build and deploy'
@@ -29,11 +33,12 @@ blocks:
2933
- name: 'Build and deploy'
3034
commands:
3135
- checkout
32-
- docker -v
3336
- mkdir -vp ~/.docker/cli-plugins/
34-
- curl --silent -L "https://github.com/docker/buildx/releases/download/v0.5.1/buildx-v0.5.1.linux-amd64" > ~/.docker/cli-plugins/docker-buildx
37+
- curl --silent -L "https://github.com/docker/buildx/releases/download/v$BUILDX_VERSION/buildx-v$BUILDX_VERSION.linux-amd64" > ~/.docker/cli-plugins/docker-buildx
3538
- chmod a+x ~/.docker/cli-plugins/docker-buildx
3639
- docker buildx version
37-
- docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
38-
- docker buildx create --name mybuilder && docker buildx use mybuilder && docker buildx inspect --bootstrap
39-
- docker buildx build --platform linux/386,linux/amd64,linux/arm/v6,linux/arm/v7 --tag $DOCKER_USERNAME/$DOCKER_IMAGE:$SEMAPHORE_GIT_TAG_NAME --tag $DOCKER_USERNAME/$DOCKER_IMAGE:latest --push .
40+
- docker run --rm --privileged tonistiigi/binfmt:$BINFMT_VERSION --install all
41+
- docker buildx ls
42+
- docker buildx create --name multiarch --driver docker-container --use
43+
- docker buildx inspect --bootstrap --builder multiarch
44+
- docker buildx build --platform linux/arm64/v8,linux/amd64,linux/arm/v6,linux/arm/v7 --tag $DOCKER_USERNAME/$DOCKER_IMAGE:$SEMAPHORE_GIT_TAG_NAME --tag $DOCKER_USERNAME/$DOCKER_IMAGE:latest --push .

.semaphore/semaphore.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ blocks:
3030
commands:
3131
- checkout
3232
- docker build --tag $DOCKER_USERNAME/$DOCKER_IMAGE .
33-
- docker run --rm $DOCKER_USERNAME/$DOCKER_IMAGE php -v | grep 7.4.22
33+
- docker run --rm $DOCKER_USERNAME/$DOCKER_IMAGE php -v | grep 7.4.28
3434
- docker run --rm $DOCKER_USERNAME/$DOCKER_IMAGE php -v | grep OPcache
3535
- docker run --rm $DOCKER_USERNAME/$DOCKER_IMAGE php -m | grep xdebug
36-
- docker run --rm $DOCKER_USERNAME/$DOCKER_IMAGE php -r "xdebug_info();" | grep "3.0.4"
36+
- docker run --rm $DOCKER_USERNAME/$DOCKER_IMAGE php -r "xdebug_info();" | grep "3.1.3"
3737
- docker run --rm $DOCKER_USERNAME/$DOCKER_IMAGE php -m | grep pdo_pgsql
38-
- docker run --rm $DOCKER_USERNAME/$DOCKER_IMAGE /usr/bin/composer -V | grep "1.10.22"
38+
- docker run --rm $DOCKER_USERNAME/$DOCKER_IMAGE /usr/bin/composer -V | grep "1.10.25"
3939
- docker run --rm $DOCKER_USERNAME/$DOCKER_IMAGE php -i | grep "short_open_tag => Off => Off"
4040
- docker run --rm $DOCKER_USERNAME/$DOCKER_IMAGE php -i | grep "memory_limit => 512M => 512M"
4141

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Next version
22
+ Refactor Semaphore
3+
+ Upgrade dependencies
34

45
## 1.5.0
56
+ Upgrade PHP to 7.4.22

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
FROM php:7.4.22-cli
1+
FROM php:7.4.28-cli
22

33
# OpCache settings
44
ENV PHP_OPCACHE_VALIDATE_TIMESTAMPS="0"
55
ENV XDEBUG_MODE="debug,coverage"
66

77
# Install system dependencies
8-
RUN apt-get update && apt-get install -y \
8+
RUN apt-get update -y && apt-get install -y \
99
git \
1010
curl \
1111
libpng-dev \
@@ -20,14 +20,14 @@ RUN apt-get update && apt-get install -y \
2020
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
2121

2222
# Setup PHPXDebug
23-
RUN pecl install xdebug-3.0.4
23+
RUN pecl install xdebug-3.1.3
2424

2525
# Install PHP extensions
2626
RUN docker-php-ext-install mysqli pdo pdo_mysql pdo_pgsql mbstring exif pcntl bcmath gd opcache zip \
2727
&& docker-php-ext-enable mysqli pdo pdo_mysql pdo_pgsql mbstring exif pcntl bcmath gd xdebug
2828

2929
# Get latest Composer
30-
COPY --from=composer:1.10.22 /usr/bin/composer /usr/bin/composer
30+
COPY --from=composer:1.10.25 /usr/bin/composer /usr/bin/composer
3131

3232
# Add custom ini files
3333
COPY config/10-shorttag.ini \

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ multiple:
88
docker buildx build --tag $(IMAGE_NAME) --platform linux/386,linux/amd64,linux/arm/v6,linux/arm/v7 --push .
99

1010
test:
11-
@docker run --name $(CONTAINER_NAME) --rm $(IMAGE_NAME) php -v | grep 7.4.22
11+
@docker run --name $(CONTAINER_NAME) --rm $(IMAGE_NAME) php -v | grep 7.4.28
1212
@docker run --name $(CONTAINER_NAME) --rm $(IMAGE_NAME) php -v | grep OPcache
1313
@docker run --name $(CONTAINER_NAME) --rm $(IMAGE_NAME) php -m | grep xdebug
14-
@docker run --name $(CONTAINER_NAME) --rm $(IMAGE_NAME) php -r "xdebug_info();" | grep "3.0.4"
14+
@docker run --name $(CONTAINER_NAME) --rm $(IMAGE_NAME) php -r "xdebug_info();" | grep "3.1.3"
1515
@docker run --name $(CONTAINER_NAME) --rm $(IMAGE_NAME) php -m | grep pdo_pgsql
1616
@docker run --name $(CONTAINER_NAME) --rm $(IMAGE_NAME) php -m | grep zip
17-
@docker run --name $(CONTAINER_NAME) --rm $(IMAGE_NAME) /usr/bin/composer -V | grep "1.10.22"
17+
@docker run --name $(CONTAINER_NAME) --rm $(IMAGE_NAME) /usr/bin/composer -V | grep "1.10.25"
1818
@docker run --name $(CONTAINER_NAME) --rm $(IMAGE_NAME) php -i | grep "short_open_tag => Off => Off"
1919
@docker run --name $(CONTAINER_NAME) --rm $(IMAGE_NAME) php -i | grep "memory_limit => 512M => 512M"
2020

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Do you use it? **Star it!**
2121

2222
| Github / Docker Image tag | PHP Version | Composer version | XDebug | Architectures |
2323
| ------------------------- | ----------- | ---------------- | ------ | ------------- |
24-
| latest | 7.4.22 | 1.10.22 | 3.0.4 | linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64 |
24+
| latest | 7.4.28 | 1.10.25 | 3.1.3 | linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64 |
2525
| 1.5.0 | 7.4.22 | 1.10.22 | 3.0.4 | linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64 |
2626
| 1.4.0 | 7.4.20 | 1.10.22 | 3.0.4 | linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64 |
2727
| 1.3.0 | 7.4.19 | 1.10.22 | 3.0.4 | linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64 |

0 commit comments

Comments
 (0)