Initial commit
Test / test_build (push) Successful in 7s Details
Release / build_push (push) Successful in 7s Details

master
Gertjan Krol 2023-05-28 21:53:38 +02:00
commit 824d774eb6
4 changed files with 45 additions and 0 deletions

View File

@ -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

View File

@ -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 }}

5
Dockerfile Normal file
View File

@ -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

3
README.md Normal file
View File

@ -0,0 +1,3 @@
## PHP Toolkit Docker image
> See [docker/php](https://git.gertjankrol.nl/docker/php)\
> This image additionally installs NodeJS and NPM