This is an automated email from the ASF dual-hosted git repository.
zhangliang2022 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/main by this push:
new 83d1f3bf feat: update docker image `latest` tag IFF it fits semver
(#2217)
83d1f3bf is described below
commit 83d1f3bf1e48228451d9de9783abbef65a958e2d
Author: Klesh Wong <[email protected]>
AuthorDate: Thu Jun 16 15:40:24 2022 +0800
feat: update docker image `latest` tag IFF it fits semver (#2217)
---
.github/workflows/build.yml | 15 +++------------
1 file changed, 3 insertions(+), 12 deletions(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 51997a99..d90a4ecf 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -30,10 +30,7 @@ jobs:
docker build -t ${{ env.IMAGE_LAKE }}:latest --file ./Dockerfile .
docker tag ${{ env.IMAGE_LAKE }}:latest ${{ env.IMAGE_LAKE }}:${{
github.ref_name }}
docker push ${{ env.IMAGE_LAKE }}:${{ github.ref_name }}
- - name: Push latest
- if: ${{ !contains( github.ref_name, 'rc') && !contains(
github.ref_name, 'test')}}
- run: |
- docker push ${{ env.IMAGE_LAKE }}:latest
+ printf {{ github.ref_name }} | grep -Pq '^v(\d+).(\d+).(\d+)$' &&
docker push ${{ env.IMAGE_LAKE }}:latest
build-configui:
name: Build config-ui image
runs-on: ubuntu-20.04
@@ -56,10 +53,7 @@ jobs:
docker build -t ${{ env.IMAGE_CONFIG_UI }}:latest --file
./Dockerfile .
docker tag ${{ env.IMAGE_CONFIG_UI }}:latest ${{ env.IMAGE_CONFIG_UI
}}:${{ github.ref_name }}
docker push ${{ env.IMAGE_CONFIG_UI }}:${{ github.ref_name }}
- - name: Push latest
- if: ${{ !contains( github.ref_name, 'rc') && !contains(
github.ref_name, 'test')}}
- run: |
- docker push ${{ env.IMAGE_CONFIG_UI }}:latest
+ printf {{ github.ref_name }} | grep -Pq '^v(\d+).(\d+).(\d+)$' &&
docker push ${{ env.IMAGE_CONFIG_UI }}:latest
build-grafana:
name: Build grafana image
runs-on: ubuntu-20.04
@@ -82,7 +76,4 @@ jobs:
docker build -t ${{ env.IMAGE_GRAFANA }}:latest --file ./Dockerfile .
docker tag ${{ env.IMAGE_GRAFANA }}:latest ${{ env.IMAGE_GRAFANA
}}:${{ github.ref_name }}
docker push ${{ env.IMAGE_GRAFANA }}:${{ github.ref_name }}
- - name: Push latest
- if: ${{ !contains( github.ref_name, 'rc') && !contains(
github.ref_name, 'test')}}
- run: |
- docker push ${{ env.IMAGE_DASHBOARD }}:latest
\ No newline at end of file
+ printf {{ github.ref_name }} | grep -Pq '^v(\d+).(\d+).(\d+)$' &&
docker push ${{ env.IMAGE_DASHBOARD }}:latest