build tag
This commit is contained in:
parent
537d3f56da
commit
eb93cec966
2 changed files with 13 additions and 9 deletions
|
|
@ -1,12 +1,12 @@
|
||||||
# /.forgejo/workflows/build.yml
|
# /.forgejo/workflows/build.yml
|
||||||
name: Build
|
name: Build
|
||||||
|
|
||||||
on:
|
# on:
|
||||||
push:
|
# push:
|
||||||
tags:
|
# tags:
|
||||||
- "v[0-9]+.[0-9]+.[0-9]+"
|
# - "v[0-9]+.[0-9]+.[0-9]+"
|
||||||
- "v[0-9]+.[0-9]+.[0-9]+*"
|
# - "v[0-9]+.[0-9]+.[0-9]+*"
|
||||||
workflow_dispatch:
|
# workflow_dispatch:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
REGISTRY: ${{ vars.CONTAINER_REGISTRY }}
|
REGISTRY: ${{ vars.CONTAINER_REGISTRY }}
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,8 @@ name: Build & Deploy on Dev
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
tags:
|
||||||
- dev
|
- "v[0-9]+.[0-9]+.[0-9]+"
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
|
@ -29,7 +29,11 @@ jobs:
|
||||||
ca=["/etc/ssl/certs/ca-certificates.crt"]
|
ca=["/etc/ssl/certs/ca-certificates.crt"]
|
||||||
- name: Tag Version
|
- name: Tag Version
|
||||||
run: |
|
run: |
|
||||||
echo "IMAGE_VERSION=latest"
|
if [ "${{ github.ref_type }}" == "tag" ]; then
|
||||||
|
echo "IMAGE_VERSION=${{ github.ref_name }}" >> $GITHUB_ENV
|
||||||
|
else
|
||||||
|
echo "IMAGE_VERSION=latest" >> $GITHUB_ENV
|
||||||
|
fi
|
||||||
- name: Login in to registry
|
- name: Login in to registry
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue