Skip to content

Commit

Permalink
[wf] create_release wf
Browse files Browse the repository at this point in the history
  • Loading branch information
grindsa committed Apr 24, 2021
1 parent 3735860 commit 3d32083
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 2 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
on:
push:
branches:
- "master"

name: Create Release

jobs:
build:
name: Create Release
runs-on: ubuntu-latest

steps:

- name: "Get current version"
uses: oprypin/find-latest-tag@v1
with:
repository: ${{ github.repository }} # The repository to scan.
releases-only: true # We know that all relevant tags have a GitHub release for them.
id: est_proxy_ver # The step ID to refer to later.

- name: Checkout code
uses: actions/checkout@v2

- name: Retrieve Version from version.py
run: |
echo APP_NAME=$(echo ${{ github.repository }} | awk -F / '{print $2}') >> $GITHUB_ENV
echo TAG_NAME=$(cat est_proxy/version.py | grep -i __version__ | head -n 1 | sed 's/__version__ = //g' | sed s/\'//g) >> $GITHUB_ENV
- run: echo "Repo is at version ${{ steps.est_proxy_ver.outputs.tag }}"
- run: echo "APP tag is ${{ env.APP_NAME }}"
- run: echo "Latest tag is ${{ env.TAG_NAME }}"

- name: Create Release
id: create_release
if: steps.est_proxy_ver.outputs.tag != env.TAG_NAME
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ env.TAG_NAME }}
release_name: ${{ env.APP_NAME }} ${{ env.TAG_NAME }}
# release_name: hahohe ${{ env.TAG_NAME }}
# body_path: body.txt
body: |
[Changelog](https://github.com/grindsa/est_proxy/blob/master/CHANGES.md)
draft: false
prerelease: false
11 changes: 11 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!-- markdownlint-disable MD013 -->
# est_proxy changelog

## 0.1

**MVP** supporting:

- tls client authentication
- `cacert` call-flow
- certificate enrollment via `simpleenroll`
- certificate renewal via `simplereenroll`
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ to let me know.

## Installation

The fastest and most convenient way to install `est_proxy` is to use docker containers. There are ready made images available at [dockerhub](https://hub.docker.com/r/grindsa/est_proxy) and [ghcr.io](https://github.com/users/grindsa/packages/container/est_proxy/) as well as [instructions to build your own container](examples/Docker/).
The fastest and most convenient way to install `est_proxy` is to use docker containers. There are ready made images available at [dockerhub](https://hub.docker.com/r/grindsa/est_proxy) and [ghcr.io](https://github.com/grindsa?tab=packages&ecosystem=container) as well as [instructions to build your own container](examples/Docker/).

A manual installation procedure will be added at a later stage of the project

Expand Down
2 changes: 1 addition & 1 deletion examples/Docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Est_proxy needs to store its configuration file (`est_proxy.cfg`), certificates,

## Installation via dockerhub or ghcr.io

There are ready made images available at [dockerhub](https://hub.docker.com/repository/docker/grindsa/est_proxy) and [ghcr.io](https://github.com/users/grindsa/packages/container/package/est_proxy) which can be installed via regular `docker pull` command.
There are ready made images available at [dockerhub](https://hub.docker.com/repository/docker/grindsa/est_proxy) and [ghcr.io](https://github.com/grindsa?tab=packages&ecosystem=container) which can be installed via regular `docker pull` command.

```bash
user@docker-host:~$ docker pull grindsa/est_proxy
Expand Down

0 comments on commit 3d32083

Please sign in to comment.