Skip to content

Commit c3b1253

Browse files
committed
Add Action publish-docker-image.yml
1 parent 8b30efb commit c3b1253

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Publish Docker Image
2+
3+
on:
4+
push:
5+
branches:
6+
- 'releases/**'
7+
8+
jobs:
9+
publish-docker-image:
10+
runs-on: ubuntu-18.04
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- name: Publish Docker image
16+
uses: docker/build-push-action@v1
17+
with:
18+
username: ${{ secrets.DOCKER_USERNAME }}
19+
password: ${{ secrets.DOCKER_PASSWORD }}
20+
repository: tschaffter/${{ github.event.repository.name }}
21+
tag_with_ref: true
22+
push: ${{ startsWith(github.ref, 'refs/heads/') }}

0 commit comments

Comments
 (0)