Skip to content

Commit a546dc3

Browse files
committed
github actions
1 parent aa0402b commit a546dc3

File tree

2 files changed

+26
-23
lines changed

2 files changed

+26
-23
lines changed

.github/workflows/deploy.yml

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -19,44 +19,46 @@ jobs:
1919
runs-on: ubuntu-22.04
2020
strategy:
2121
matrix:
22-
php-version: ['7.4','8.0','8.1','8.2']
22+
php-version: ['7.4','8.0','8.1','8.2','8.3','8.4']
2323

2424
steps:
2525
- uses: actions/checkout@v3
2626

27-
- name: Login to GitHub Container Registry
28-
uses: docker/login-action@v2
29-
with:
30-
registry: ghcr.io
31-
username: ${{ github.repository_owner }}
32-
password: ${{ secrets.GITHUB_TOKEN }}
27+
- name: Login to GitHub Container Registry
28+
uses: docker/login-action@v2
29+
with:
30+
registry: ghcr.io
31+
username: ${{ github.repository_owner }}
32+
password: ${{ secrets.GITHUB_TOKEN }}
3333

3434
- name: Build docker image using Github Packages as cache
3535
env:
3636
PHP_VERSION: ${{ matrix.php-version }}
3737
run: |
3838
docker pull $DOCKER_REGISTRY_IMAGE:${PHP_VERSION} || true
39-
cd docker/$PHP_VERSION
40-
docker build --build-arg PHP_VERSION=${PHP_VERSION} \
39+
cd docker
40+
docker build \
41+
--file docker/Dockerfile \
42+
--build-arg PHP_VERSION=${PHP_VERSION} \
4143
--cache-from $DOCKER_REGISTRY_IMAGE:${PHP_VERSION} \
4244
--tag $DOCKER_REGISTRY_IMAGE:${PHP_VERSION} \
4345
--tag $DOCKER_REGISTRY_IMAGE:latest .
4446
docker push $DOCKER_REGISTRY_IMAGE:${PHP_VERSION}
4547
46-
- name: Cache vendor folder
47-
uses: actions/cache@v3
48-
with:
49-
path: vendor
50-
key: vendor-${{ matrix.php-version }}-${{ hashFiles('composer.lock') }}
51-
52-
- name: Install dependencies
53-
run: |
54-
docker run --rm \
55-
-v $PWD:/var/www/html \
56-
$DOCKER_REGISTRY_IMAGE:${{ matrix.php-version }} \
57-
bash -c '\
58-
composer config -g github-oauth.github.com ${{ secrets.ACTIONS_TOKEN }} && \
59-
composer install --no-interaction --prefer-dist --no-scripts --no-cache'
48+
# - name: Cache vendor folder
49+
# uses: actions/cache@v3
50+
# with:
51+
# path: vendor
52+
# key: vendor-${{ matrix.php-version }}-${{ hashFiles('composer.lock') }}
53+
54+
# - name: Install dependencies
55+
# run: |
56+
# docker run --rm \
57+
# -v $PWD:/var/www/html \
58+
# $DOCKER_REGISTRY_IMAGE:${{ matrix.php-version }} \
59+
# bash -c '\
60+
# composer config -g github-oauth.github.com ${{ secrets.ACTIONS_TOKEN }} && \
61+
# composer install --no-interaction --prefer-dist --no-scripts --no-cache'
6062

6163

6264
usx:

Justfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ build:
1212
docker-compose --progress=plain build
1313
fi
1414

15+
# Composer install is run inside the test containers instead
1516
#install: build
1617
# #!/usr/bin/env bash
1718
# rm composer.lock

0 commit comments

Comments
 (0)