Skip to content

Commit

Permalink
Fix some stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryangr0 committed Jun 9, 2024
1 parent e4747c0 commit 4fed592
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/php-8.2-bookworm.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: php-8.2-bookworm

on: workflow_dispatch
on:
workflow_dispatch:
push:
branches:
- main

jobs:
build-and-push:
Expand Down Expand Up @@ -30,3 +34,6 @@ jobs:
push: true
tags: |
webgrip/github-action-php:8.2-bookworm
test-docker-image:
uses: ./.github/workflows/test.yml
21 changes: 21 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#TEst to run the dockerfile we just made, so that we know it's uppable

name: test

on:
workflow_call:
inputs:
docker-image:
required: true
type: string

jobs:
test-docker-image:
container: ${{ github.event.inputs.docker-image }}
runs-on: self-hosted
steps:
- name: Checkout
uses: actions/checkout@v4

- name: ls -la
run: ls -la
7 changes: 7 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
services:
github-action-php:
#image: webgrip/github-action-php:8.2-bookworm
build:
context: images/php/8.2/bookworm
dockerfile: Dockerfile
container_name: github-runner
2 changes: 1 addition & 1 deletion images/php/8.2/bookworm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ WORKDIR /workspace

# Expose port 9000 and start php-fpm server
EXPOSE 9000
CMD ["php-fpm"]
CMD ["php"]

0 comments on commit 4fed592

Please sign in to comment.