diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index 0c671af..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,64 +0,0 @@ -name: Build -on: - push: - branches: - - main -jobs: - docker: - runs-on: ubuntu-latest - steps: - - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - - name: Login to DockerHub - uses: docker/login-action@v2 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Build and push 8.1 - uses: docker/build-push-action@v3 - with: - file: "./src/docker/Dockerfile" - push: true - platforms: linux/amd64,linux/arm64 - build-args: | - phpVersion=8.1 - tags: "${{ vars.BUILDKIT_IMAGE }}:8.1" - - - name: Build and push 8.2 - uses: docker/build-push-action@v3 - with: - file: "./src/docker/Dockerfile" - push: true - platforms: linux/amd64,linux/arm64 - build-args: | - phpVersion=8.2 - tags: "${{vars.BUILDKIT_IMAGE}}:8.2" - - - name: Build and push 8.3 - uses: docker/build-push-action@v3 - with: - file: "./src/docker/Dockerfile" - push: true - platforms: linux/amd64,linux/arm64 - build-args: | - phpVersion=8.3 - tags: | - "${{vars.BUILDKIT_IMAGE}}:8.3" - - - name: Build and push 8.4 - uses: docker/build-push-action@v3 - with: - file: "./src/docker/Dockerfile" - push: true - platforms: linux/amd64,linux/arm64 - build-args: | - phpVersion=8.4 - tags: | - "${{vars.BUILDKIT_IMAGE}}:8.4" - "${{vars.BUILDKIT_IMAGE}}:latest" diff --git a/.github/workflows/manual-build.yml b/.github/workflows/manual-build.yml deleted file mode 100644 index 7ab89a1..0000000 --- a/.github/workflows/manual-build.yml +++ /dev/null @@ -1,100 +0,0 @@ -name: Manual-build -on: - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - inputs: - docker_tag: - description: 'Docker tag' - required: true - default: 'latest' - type: string -env: - BUILDKIT_IMAGE: emurgornd/nginx-php-fpm -jobs: - docker: - runs-on: ubuntu-latest - steps: - - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - - name: Login to DockerHub - uses: docker/login-action@v2 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Build and push 7.2 - uses: docker/build-push-action@v3 - with: - file: "./src/docker/7.2/Dockerfile" - push: true - tags: "${{env.BUILDKIT_IMAGE}}:7.2" - - - name: Build and push 7.3 - uses: docker/build-push-action@v3 - with: - file: "./src/docker/7.3/Dockerfile" - push: true - tags: "${{env.BUILDKIT_IMAGE}}:7.3" - - - name: Build and push 7.4 - uses: docker/build-push-action@v3 - with: - file: "./src/docker/7.4/Dockerfile" - push: true - tags: "${{env.BUILDKIT_IMAGE}}:7.4" - - - name: Build and push 8.0 - uses: docker/build-push-action@v3 - with: - file: "./src/docker/8.0/Dockerfile" - push: true - platforms: linux/amd64,linux/arm64 - tags: "${{env.BUILDKIT_IMAGE}}:8.0" - - - name: Build and push 8.1 - uses: docker/build-push-action@v3 - with: - file: "./src/docker/Dockerfile" - push: true - platforms: linux/amd64,linux/arm64 - build-args: | - phpVersion=8.1 - tags: "${{ vars.BUILDKIT_IMAGE }}:8.1" - - - name: Build and push 8.2 - uses: docker/build-push-action@v3 - with: - file: "./src/docker/Dockerfile" - push: true - platforms: linux/amd64,linux/arm64 - build-args: | - phpVersion=8.2 - tags: "${{vars.BUILDKIT_IMAGE}}:8.2" - - - name: Build and push 8.3 - uses: docker/build-push-action@v3 - with: - file: "./src/docker/Dockerfile" - push: true - platforms: linux/amd64,linux/arm64 - build-args: | - phpVersion=8.3 - tags: | - "${{vars.BUILDKIT_IMAGE}}:8.3" - "${{vars.BUILDKIT_IMAGE}}:latest" - - - name: Build and push 8.4 RC - uses: docker/build-push-action@v3 - with: - file: "./src/docker/Dockerfile" - push: true - platforms: linux/amd64,linux/arm64 - build-args: | - phpVersion=8.4.0RC4 - tags: | - "${{vars.BUILDKIT_IMAGE}}:8.4.0RC4" diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml deleted file mode 100644 index 4d0ee41..0000000 --- a/.github/workflows/tests.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: Test -on: - push: -jobs: - integration: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Create Laravel project - run: | - composer create-project laravel/laravel laravel - - name: Fix Permission - run: chmod -R 777 ./laravel/storage - - name: Run docker-compose - run: - cp ./tests/compose.yaml compose.yaml && - docker compose -f "compose.yaml" up -d - - name: Create script.js for K6 test - run: | - touch script.js && cat > script.js < /dev/null ; do - echo "Waiting for database connection..." - sleep 5 - done - - name: Laravel database migration test - run: | - docker exec nginx-php-fpm php artisan migrate \ No newline at end of file