Skip to content

Commit

Permalink
Build "php" container on CI environment
Browse files Browse the repository at this point in the history
  • Loading branch information
phansys committed Aug 22, 2023
1 parent a415c51 commit 98ebb3f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .github/workflows/qa-dockerfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ on:
- main
paths:
- ".docker/php/Dockerfile"
- "compose.yaml"
pull_request:
schedule:
- cron: "0 0 * * 0"

jobs:
lint-dockerfile:
Expand All @@ -20,3 +23,16 @@ jobs:
uses: hadolint/[email protected]
with:
dockerfile: ".docker/php/Dockerfile"

build:
runs-on: ubuntu-latest
name: Build containers with Docker Compose
steps:
- uses: actions/checkout@v3

- name: Build "php" container
uses: isbang/[email protected]
with:
compose-file: "./compose.yaml"
services: |
php
3 changes: 2 additions & 1 deletion compose.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
services:
php:
build:
context: .docker/php
context: .
target: php
dockerfile: ./.docker/php/Dockerfile
args:
PHP_VERSION: ${PHP_VERSION:-8.2-cli}
volumes:
Expand Down

0 comments on commit 98ebb3f

Please sign in to comment.