test auto build

This commit is contained in:
Kittapath 2024-01-11 12:56:53 +07:00
parent fd5e24ff33
commit 30718ecf61

View file

@ -1,12 +1,9 @@
name: release-test name: release-test
run-name: release-test ${{ github.actor }} run-name: release-test ${{ github.actor }}
on: on:
# push: push:
# tags: tags:
# - 'v[0-9]+.[0-9]+.[0-9]+' - "version-[0-9]+.[0-9]+.[0-9]+"
# tags-ignore:
# - '2.*'
# Allow run workflow manually from Action tab
workflow_dispatch: workflow_dispatch:
env: env:
REGISTRY: docker.frappet.com REGISTRY: docker.frappet.com
@ -21,11 +18,15 @@ jobs:
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
# skip Set up QEMU because it fail on act and container # 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 - name: Gen Version
id: gen_ver id: gen_ver
run: | run: |
if [[ $GITHUB_REF == 'refs/tags/'* ]]; then if [[ $GITHUB_REF == 'refs/tags/'* ]]; then
IMAGE_VER='${GITHUB_REF/refs\/tags\//}' IMAGE_VER=${{ steps.vars.outputs.tag }}
else else
IMAGE_VER=${{ github.event.inputs.IMAGE_VER }} IMAGE_VER=${{ github.event.inputs.IMAGE_VER }}
fi fi