commit 824d774eb630f2f32f77a617c366638ae65179f8 Author: Gertjan Krol Date: Sun May 28 21:53:38 2023 +0200 Initial commit diff --git a/.forgejo/workflows/release.yaml b/.forgejo/workflows/release.yaml new file mode 100644 index 0000000..b377eb6 --- /dev/null +++ b/.forgejo/workflows/release.yaml @@ -0,0 +1,20 @@ +name: Release +on: + push: + tags: + - '*' + +jobs: + build_push: + runs-on: ubuntu-latest + container: git.gertjankrol.nl/docker/toolkit:latest + env: + REGISTRY: git.gertjankrol.nl + IMAGE_NAMESPACE: docker/php-toolkit + steps: + - name: Check out repository + uses: actions/checkout@v3 + - name: Docker login + run: docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} https://${REGISTRY} + - name: Build and push containers + run: docker build . --build-arg VERSION=${{ github.ref_name }} -t ${REGISTRY}/${IMAGE_NAMESPACE}:${{ github.ref_name }} -t ${REGISTRY}/${IMAGE_NAMESPACE}:latest --push diff --git a/.forgejo/workflows/test-build.yaml b/.forgejo/workflows/test-build.yaml new file mode 100644 index 0000000..c511bed --- /dev/null +++ b/.forgejo/workflows/test-build.yaml @@ -0,0 +1,17 @@ +name: Test +on: + push: + branches: + - '*' + +jobs: + test_build: + runs-on: ubuntu-latest + container: git.gertjankrol.nl/docker/toolkit:latest + steps: + - name: Check out repository + uses: actions/checkout@v3 + - name: Build containers + run: docker build . --build-arg VERSION=8.2 -t php-toolkit-test:${{ github.ref_name }} + - name: Image details + run: docker image inspect php-toolkit-test:${{ github.ref_name }} diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8ee1d29 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +ARG VERSION +FROM git.gertjankrol.nl/docker/php:${VERSION} +RUN mv "$PHP_INI_DIR/php.ini-development" "$PHP_INI_DIR/php.ini" + +RUN apk add --no-cache git nodejs npm \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..bca2bf3 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +## PHP Toolkit Docker image +> See [docker/php](https://git.gertjankrol.nl/docker/php)\ +> This image additionally installs NodeJS and NPM