Skip to content

Commit baa4312

Browse files
committed
Add GitHub Workflow to build and push docker image.
1 parent 388f4be commit baa4312

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/docker.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Build Docker Image
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches: [ main ]
9+
10+
jobs:
11+
docker-build-pub-sub:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v3
16+
17+
- uses: docker/login-action@v2
18+
with:
19+
registry: ghcr.io
20+
username: ${{ github.actor }}
21+
password: ${{ secrets.GITHUB_TOKEN }}
22+
23+
- name: Build Pub-Sub Docker image
24+
run: |
25+
docker build -t "ghcr.io/pdsinterop/php-solid-pubsub-server:latest" .
26+
docker push "ghcr.io/pdsinterop/php-solid-pubsub-server:latest"

0 commit comments

Comments
 (0)