Skip to content

Commit

Permalink
Added CI for checking Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
Progi1984 committed Jan 5, 2024
1 parent 1e2a5dd commit 3c70e3f
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 11 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Docker
on:
push:
pull_request:

permissions:
contents: read

jobs:
integration_deployment:
name: Check Docker
runs-on: ubuntu-latest

steps:
- name: Checkout the repository 🎁
uses: actions/checkout@v3

- name: Run shop with Docker
run: |
docker-compose -f docker-compose.yml up -d --build
bash -c 'while [[ "$(curl -L -s -o /dev/null -w %{http_code} http://127.0.0.1/healthcheck" != "200" ]]; do sleep 5; done'
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM php:7.2-apache as builder
FROM php:8.3-apache as builder

RUN apt-get update && \
apt-get install -y \
Expand All @@ -15,7 +15,7 @@ RUN composer update && \
composer install


FROM php:7.2-apache
FROM php:8.3-apache

RUN apt-get update && \
apt-get install -y \
Expand Down
9 changes: 0 additions & 9 deletions dbUpgrade.sh

This file was deleted.

0 comments on commit 3c70e3f

Please sign in to comment.