php/.forgejo/workflows/test-build.yaml

29 lines
782 B
YAML
Raw Normal View History

2023-05-28 19:22:57 +00:00
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
2023-09-02 15:04:53 +00:00
- name: Build PHP image
uses: actions/docker-build-push@v4
with:
tags: php-test:${{github.ref_name}}
push: false
- name: PHP image details
run: docker image inspect php-test:${{github.ref_name}}
- name: Build PHP-FPM image
uses: actions/docker-build-push@v4
with:
tags: php-test-fpm:${{github.ref_name}}
file: Dockerfile-fpm
push: false
- name: PHP-FPM image details
run: docker image inspect php-test-fpm:${{github.ref_name}}