diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 6dcf534..d607819 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -6,6 +6,6 @@ updates: interval: "daily" reviewers: - krns - - PKuebler + - NeroAzure assignees: - - PKuebler + - NeroAzure diff --git a/.github/workflows/edgeImageBuild.yml b/.github/workflows/edgeImageBuild.yml new file mode 100644 index 0000000..8ed32df --- /dev/null +++ b/.github/workflows/edgeImageBuild.yml @@ -0,0 +1,35 @@ +name: Build edge image + +on: + push: + branches: + - develop + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - + name: Checkout + uses: actions/checkout@v2 + - + name: Set up QEMU + uses: docker/setup-qemu-action@v1 + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + - + name: Login to DockerHub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - + name: Build and push + uses: docker/build-push-action@v2 + with: + context: . + platforms: linux/amd64,linux/arm64 + push: true + tags: | + sourceboat/docker-laravel:edge \ No newline at end of file diff --git a/.github/workflows/stableImageBuild.yml b/.github/workflows/stableImageBuild.yml new file mode 100644 index 0000000..aa1d9da --- /dev/null +++ b/.github/workflows/stableImageBuild.yml @@ -0,0 +1,49 @@ +name: Build stable image + +on: + push: + tags: + - '*.*.*' + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - + name: Checkout + uses: actions/checkout@v2 + - + name: Docker meta + id: meta + uses: docker/metadata-action@v3 + with: + # list of Docker images to use as base name for tags + images: | + sourceboat/docker-laravel + flavour: | + latest=true + # generate Docker tags based on the following events/attributes + tags: | + type=semver,pattern={{version}} + type=semver,pattern={{major}}.{{minor}} + type=semver,pattern={{major}} + - + name: Set up QEMU + uses: docker/setup-qemu-action@v1 + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + - + name: Login to DockerHub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - + name: Build and push + uses: docker/build-push-action@v2 + with: + context: . + platforms: linux/amd64,linux/arm64 + push: true + tags: ${{ steps.meta.outputs.tags }} \ No newline at end of file diff --git a/.github/workflows/testImageBuild.yml b/.github/workflows/testImageBuild.yml new file mode 100644 index 0000000..1de0a91 --- /dev/null +++ b/.github/workflows/testImageBuild.yml @@ -0,0 +1,14 @@ +name: Build test image + +on: [pull_request] + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - + name: Checkout + uses: actions/checkout@v2 + - + name: Run tests + run: docker-compose -f docker-compose.test.yml run test \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 8ed656d..92a54c8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM php:8.0.7-fpm-alpine +FROM php:8.0.8-fpm-alpine ENV PHP_OPCACHE_VALIDATE_TIMESTAMPS="0" \ PHP_OPCACHE_MAX_ACCELERATED_FILES="10000" \ @@ -78,7 +78,8 @@ COPY ./etc/service/ /etc/service/ RUN find /etc/service/ -name "run" -exec chmod -v +x {} \; # copy nginx config files -COPY ./etc/nginx/ /etc/nginx/ +COPY ./etc/nginx/conf.d/ /etc/nginx/conf.d/ +COPY ./etc/nginx/nginx.conf /etc/nginx/nginx.conf # copy php config files COPY ./usr/local/etc/php/ /usr/local/etc/php/ diff --git a/README.md b/README.md index baa419f..30c04c2 100644 --- a/README.md +++ b/README.md @@ -117,6 +117,7 @@ Check [releases](https://github.com/sourceboat/docker-laravel/releases) for all - [Phil-Bastian Berndt](https://github.com/pehbehbeh) - [Philipp Kübler](https://github.com/PKuebler) +- [Kevin Buchholz](https://github.com/NeroAzure) - [All Contributors](https://github.com/sourceboat/docker-laravel/graphs/contributors) ## License diff --git a/docker-compose.test.yml b/docker-compose.test.yml index 9298d4c..963a711 100644 --- a/docker-compose.test.yml +++ b/docker-compose.test.yml @@ -1,6 +1,6 @@ version: '3.7' services: - sut: + test: build: . command: /root/test/test-command.sh environment: