Skip to content

Commit 7ac6fd5

Browse files
committed
✨ Add Github Actions
1 parent 31b939d commit 7ac6fd5

2 files changed

Lines changed: 71 additions & 0 deletions

File tree

.github/workflows/push.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Docker Build
2+
3+
on: push
4+
5+
jobs:
6+
publish-to-docker-io:
7+
name: Publish to Docker.io
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v1
11+
- uses: jerray/publish-docker-action@master
12+
with:
13+
username: ${{ secrets.DOCKER_USERNAME }}
14+
password: ${{ secrets.DOCKER_TOKEN }}
15+
repository: fspnetwork/gitwatch
16+
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
22+
- uses: jerray/publish-docker-action@master
23+
with:
24+
username: ${{ secrets.GITHUB_USERNAME }}
25+
password: ${{ secrets.GITHUB_PR_TOKEN }}
26+
registry: docker.pkg.github.com
27+
repository: fspnet/gitwatch/gitwatch
28+
tags: edge

.github/workflows/release.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Docker Build
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish-to-docker-io:
9+
name: Publish to Docker.io
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v1
13+
- uses: jerray/publish-docker-action@master
14+
with:
15+
username: ${{ secrets.DOCKER_USERNAME }}
16+
password: ${{ secrets.DOCKER_TOKEN }}
17+
repository: fspnetwork/gitwatch
18+
auto_tag: true
19+
- uses: jerray/publish-docker-action@master
20+
with:
21+
username: ${{ secrets.DOCKER_USERNAME }}
22+
password: ${{ secrets.DOCKER_TOKEN }}
23+
repository: fspnetwork/gitwatch
24+
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
30+
- uses: jerray/publish-docker-action@master
31+
with:
32+
username: ${{ secrets.GITHUB_USERNAME }}
33+
password: ${{ secrets.GITHUB_PR_TOKEN }}
34+
registry: docker.pkg.github.com
35+
repository: fspnet/gitwatch/gitwatch
36+
auto_tag: true
37+
- uses: jerray/publish-docker-action@master
38+
with:
39+
username: ${{ secrets.GITHUB_USERNAME }}
40+
password: ${{ secrets.GITHUB_PR_TOKEN }}
41+
registry: docker.pkg.github.com
42+
repository: fspnet/gitwatch/gitwatch
43+
tags: latest

0 commit comments

Comments
 (0)