commit | author | age
|
659253
|
1 |
name: Release |
JK |
2 |
|
|
3 |
on: |
|
4 |
push: |
|
5 |
tags: |
|
6 |
- 'v[0-9]+.*' |
|
7 |
|
|
8 |
jobs: |
|
9 |
deploy: |
|
10 |
name: Publish to Docker Hub |
|
11 |
runs-on: ubuntu-latest |
|
12 |
steps: |
|
13 |
- name: Checkout code |
|
14 |
uses: actions/checkout@v2 |
|
15 |
|
|
16 |
- name: Login to Docker Hub |
|
17 |
run: | |
|
18 |
docker login -u 'jacekkow' -p '${{ secrets.DOCKER_PASSWORD }}' |
|
19 |
|
|
20 |
- name: Prepare and push Docker plugin |
|
21 |
run: | |
|
22 |
VERSIONS="latest ${GITHUB_REF/refs\/tags\//}" |
|
23 |
export VERSIONS |
|
24 |
./package.sh |
|
25 |
for VERSION in ${VERSIONS}; do |
|
26 |
docker plugin push "jacekkow/pyipam:${VERSION}" |
|
27 |
done |