* [FEAT] docker ci pipeline * add release workflow * depend on release * move tag * remove push to main * fixup release workflow * add latest tag on dockerhub * cleanup * Update .github/workflows/docker.yml Co-authored-by: Vlad Stan <stan.v.vlad@gmail.com> * use latest versions of actions --------- Co-authored-by: Vlad Stan <stan.v.vlad@gmail.com> Co-authored-by: Pavol Rusnak <pavol@rusnak.io>
28 lines
513 B
YAML
28 lines
513 B
YAML
name: release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "v[0-9]+.[0-9]+.[0-9]+"
|
|
- "[0-9]+.[0-9]+.[0-9]+"
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
release:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Create github release
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
tag: ${{ github.ref_name }}
|
|
run: |
|
|
gh release create "$tag" --generate-notes
|
|
|
|
docker:
|
|
needs: [ release ]
|
|
uses: ./.github/workflows/docker.yml
|
|
with:
|
|
tag: ${{ github.ref_name }}
|