From 98ebb3f915bdb653378b480da1276abdaa7f411f Mon Sep 17 00:00:00 2001 From: Javier Spagnoletti Date: Mon, 21 Aug 2023 15:36:21 -0300 Subject: [PATCH] Build "php" container on CI environment --- .github/workflows/qa-dockerfile.yml | 16 ++++++++++++++++ compose.yaml | 3 ++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/qa-dockerfile.yml b/.github/workflows/qa-dockerfile.yml index 4f0e929beb..d78f441473 100644 --- a/.github/workflows/qa-dockerfile.yml +++ b/.github/workflows/qa-dockerfile.yml @@ -6,7 +6,10 @@ on: - main paths: - ".docker/php/Dockerfile" + - "compose.yaml" pull_request: + schedule: + - cron: "0 0 * * 0" jobs: lint-dockerfile: @@ -20,3 +23,16 @@ jobs: uses: hadolint/hadolint-action@v3.1.0 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/compose-action@v1.5.1 + with: + compose-file: "./compose.yaml" + services: | + php diff --git a/compose.yaml b/compose.yaml index 08e1a8488c..40301bc8ae 100644 --- a/compose.yaml +++ b/compose.yaml @@ -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: