Skip to content

Commit b0064e3

Browse files
authored
add auto build of docker image
1 parent 4357497 commit b0064e3

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Publish to Registry
2+
on:
3+
release:
4+
types: [published]
5+
jobs:
6+
update:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@master
10+
- name: Get release version
11+
id: get_version
12+
run: echo ::set-env name=RELEASE_VERSION::$(echo ${GITHUB_REF:10})
13+
- name: Publish to Registry
14+
uses: elgohr/Publish-Docker-Github-Action@master
15+
with:
16+
name: arehbein/pptag
17+
username: ${{ secrets.DOCKER_USERNAME }}
18+
password: ${{ secrets.DOCKER_PASSWORD }}
19+
tags: "latest,${{ env.RELEASE_VERSION }}"

0 commit comments

Comments
 (0)