Skip to content

Commit

Permalink
v1.4.0-alpha1
Browse files Browse the repository at this point in the history
  • Loading branch information
pierky committed Feb 28, 2021
1 parent 088b2eb commit 921d745
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 5 deletions.
36 changes: 32 additions & 4 deletions .github/workflows/docker_publish.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
name: Publish Docker image

# on:
# release:
# types: [published]

on:
release:
types: [published]
workflow_dispatch:
inputs:
tag:
description: 'Tag'
required: true

jobs:
push_to_registry:
Expand All @@ -11,13 +18,34 @@ jobs:
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Push to Docker Hub
with:
ref: github.event.inputs.tag

- name: Get the release
run: echo "::set-output name=CURRENT_RELEASE::$(python -c 'from pierky.arouteserver.version import __version__; print(__version__)')"
id: get_the_release

- name: Is it a stable?
run: echo "::set-output name=IS_STABLE_RELEASE::$(echo ${{ steps.get_the_release.outputs.CURRENT_RELEASE }} | egrep '^\d+\.\d+\.\d+$')"
id: is_stable_release

- name: Push to Docker Hub (current release)
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
repository: pierky/arouteserver
tags: ${{ steps.get_the_release.outputs.CURRENT_RELEASE }}

- name: Push to Docker Hub (latest)
if: steps.get_the_release.outputs.IS_STABLE_RELEASE == 0
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
repository: pierky/arouteserver
tag_with_ref: true
tags: latest

- name: Update Docker Hub description
uses: peter-evans/dockerhub-description@v2
with:
Expand Down
4 changes: 4 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ Change log
next release
------------

- New: Docker image to easily build route-server configurations.

For more details, see the `docker directory <https://github.com/pierky/arouteserver/tree/master/docker>`_.

- Improvement: change the default value of ``bgpq3_path`` to ``bgpq4``.

The ``bgpq4`` tool is now referenced as the default one in the ``bgpq3_path`` configuration line of arouteserver.yml.
Expand Down
2 changes: 1 addition & 1 deletion pierky/arouteserver/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

__version__ = "1.3.0" # pragma: no cover
__version__ = "1.4.0-alpha1" # pragma: no cover
COPYRIGHT_YEAR = 2021 # pragma: no cover

0 comments on commit 921d745

Please sign in to comment.