Skip to content

Commit 11a2d31

Browse files
author
Greg Bowler
committed
Add contribution notes
1 parent bfb823e commit 11a2d31

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

CONTRIBUTING.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
How to contribute to php-actions/php-build
2+
==========================================
3+
4+
To build this image for local development:
5+
6+
```bash
7+
docker build .
8+
```
9+
10+
The last line from `docker build` will show the image ID, which identifies the final layer of the image. You can use this ID to interact further.
11+
12+
To launch into the image, within a bash shell:
13+
14+
```bash
15+
docker run -it $image_id /bin/bash
16+
```
17+
18+
After making changes, run `docker build .` again to build the extra layers that you've added, making a note of the new image ID.
19+
20+
```bash
21+
docker tag $new_image_id ghcr.io/php-actions/php-build:$version_number
22+
```
23+
24+
To deploy the version to Github:
25+
26+
```bash
27+
docker push ghcr.io/php-actions/php-build:$version_number
28+
```

0 commit comments

Comments
 (0)