Skip to content

Commit d3c5ab8

Browse files
committed
Update github workflows
1 parent 02c49a3 commit d3c5ab8

File tree

2 files changed

+20
-5
lines changed

2 files changed

+20
-5
lines changed

.github/workflows/push.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ name: Docker Build
33
on: push
44

55
jobs:
6-
build:
6+
publish-to-docker-io:
7+
name: Publish to Docker.io
78
runs-on: ubuntu-latest
89
steps:
910
- uses: actions/checkout@v1
@@ -13,9 +14,15 @@ jobs:
1314
password: ${{ secrets.DOCKER_TOKEN }}
1415
repository: fspnetwork/php
1516
tags: edge
17+
publish-to-github-pkg:
18+
name: Publish to GitHub Package Registry
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v1
1622
- uses: jerray/publish-docker-action@master
1723
with:
1824
username: ${{ secrets.GITHUB_USERNAME }}
1925
password: ${{ secrets.GITHUB_PR_TOKEN }}
20-
repository: docker.pkg.github.com/FSPNET/php
26+
registry: docker.pkg.github.com
27+
repository: fspnet/php
2128
tags: edge

.github/workflows/release.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ on:
55
types: [published]
66

77
jobs:
8-
build:
8+
publish-to-docker-io:
9+
name: Publish to Docker.io
910
runs-on: ubuntu-latest
1011
steps:
1112
- uses: actions/checkout@v1
@@ -21,15 +22,22 @@ jobs:
2122
password: ${{ secrets.DOCKER_TOKEN }}
2223
repository: fspnetwork/php
2324
tags: latest
25+
publish-to-github-pkg:
26+
name: Publish to GitHub Package Registry
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: actions/checkout@v1
2430
- uses: jerray/publish-docker-action@master
2531
with:
2632
username: ${{ secrets.GITHUB_USERNAME }}
2733
password: ${{ secrets.GITHUB_PR_TOKEN }}
28-
repository: docker.pkg.github.com/FSPNET/php
34+
registry: docker.pkg.github.com
35+
repository: fspnet/php
2936
auto_tag: true
3037
- uses: jerray/publish-docker-action@master
3138
with:
3239
username: ${{ secrets.GITHUB_USERNAME }}
3340
password: ${{ secrets.GITHUB_PR_TOKEN }}
34-
repository: docker.pkg.github.com/FSPNET/php
41+
registry: docker.pkg.github.com
42+
repository: fspnet/php
3543
tags: latest

0 commit comments

Comments
 (0)