Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 742183f

Browse files
committed
feat: helper
1 parent 5a38ac7 commit 742183f

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.github/workflows/build.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ jobs:
5353
images: |
5454
coderockr/php
5555
ghcr.io/${{ github.repository }}
56+
ghcr.io/coderockr/php
5657
tags: |
5758
type=schedule
5859
type=ref,event=branch

Makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
all: build
2+
3+
IMAGE=ghcr.io/coderockr/php
4+
TAG=$(shell git branch | grep \* | cut -d ' ' -f2)
5+
6+
build:
7+
docker build . -t $(IMAGE):$(TAG)
8+
9+
push: build
10+
docker push $(IMAGE):$(TAG)

0 commit comments

Comments
 (0)