Initial commit
commit
824d774eb6
|
@ -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
|
|
@ -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 }}
|
|
@ -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
|
Loading…
Reference in New Issue