diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index a1a6c4b..b112537 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,12 +1,9 @@ name: release-test run-name: release-test ${{ github.actor }} on: - # push: - # tags: - # - 'v[0-9]+.[0-9]+.[0-9]+' - # tags-ignore: - # - '2.*' - # Allow run workflow manually from Action tab + push: + tags: + - "version-[0-9]+.[0-9]+.[0-9]+" workflow_dispatch: env: REGISTRY: docker.frappet.com @@ -21,11 +18,14 @@ jobs: - uses: actions/checkout@v3 # skip Set up QEMU because it fail on act and container # Gen Version try to get version from tag or inut + - name: Set output tags + id: vars + run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT - name: Gen Version id: gen_ver run: | if [[ $GITHUB_REF == 'refs/tags/'* ]]; then - IMAGE_VER='${GITHUB_REF/refs\/tags\//}' + IMAGE_VER=${{ steps.vars.outputs.tag }} else IMAGE_VER=${{ github.event.inputs.IMAGE_VER }} fi