pyIPAM - Docker Plugin for IPAM written in Python
Jacek Kowalski
2020-05-04 3e641fb208e09c20ecb89071f8d2f324e6e32f9e
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