Skip to content

Commit

Permalink
deps: Move to PHP 8.3 (#79)
Browse files Browse the repository at this point in the history
Use a dedicated tag for now
  • Loading branch information
tyx authored Dec 6, 2023
1 parent 651af97 commit 4745e1c
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 17 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/continuous-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,22 @@ jobs:
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: build and push
uses: docker/build-push-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: gogaille/bref
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
repository: gogaille/bref
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
path: ./bref
- name: build and push
uses: docker/build-push-action@v5
with:
context: ./bref
push: true
tag_with_ref: true
tag_with_sha: true
add_git_labels: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
21 changes: 14 additions & 7 deletions .github/workflows/continuous-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on: pull_request

env:
DOCKER_BUILDKIT: 1
TEST_TAG: gogaille/bref:test

jobs:
bref:
Expand All @@ -15,14 +16,20 @@ jobs:
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: gogaille/bref
- name: build
uses: docker/build-push-action@v1
uses: docker/build-push-action@v5
with:
repository: gogaille/bref
path: ./bref
tags: latest
push: false
context: ./bref
load: true
tags: ${{ env.TEST_TAG }}
- name: test
run: |
docker run --rm gogaille/bref php --version
docker run --rm gogaille/bref composer --version
docker run --rm ${{ env.TEST_TAG }} php --version
docker run --rm ${{ env.TEST_TAG }} composer --version
6 changes: 3 additions & 3 deletions bref/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# syntax=docker/dockerfile:1.4
ARG PHP_VERSION=82
ARG PHP_VERSION=83
ARG ALPINE_VERSION=3.16
ARG BREF_VERSION=2
ARG REDIS_EXTRA_VERSION=1.0.0

FROM bref/extra-redis-php-${PHP_VERSION}:${REDIS_EXTRA_VERSION} AS redis_extension
FROM bref/extra-redis-php-${PHP_VERSION} AS redis_extension

FROM alpine:${ALPINE_VERSION} as tools-installer
RUN apk add --no-cache curl gnupg
Expand Down Expand Up @@ -49,7 +49,7 @@ ENV PATH=$PATH:/var:/var/task/bin \
HANDLER=public/index.php \
DOCUMENT_ROOT=public
COPY --link entrypoint.sh /gogaille-entrypoint.sh
COPY --link --from=composer:2.5 /usr/bin/composer /usr/local/bin/composer
COPY --link --from=composer:2.6 /usr/bin/composer /usr/local/bin/composer
COPY --link --from=phive /usr/local/bin/phive /usr/local/bin/
RUN phive --version
COPY --link --from=hcl2json /usr/local/bin/hcl2json /usr/local/bin/
Expand Down

0 comments on commit 4745e1c

Please sign in to comment.