Skip to content
This repository was archived by the owner on Apr 20, 2022. It is now read-only.

Commit 3379d4d

Browse files
authored
Update deploy_test.yml
1 parent eaeecbe commit 3379d4d

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/deploy_test.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,16 @@ jobs:
9595

9696
- name: Set up Docker Buildx
9797
uses: docker/setup-buildx-action@v1
98-
98+
99+
- id: version
100+
run: |
101+
MAIN_STREAM_VERSION=`echo ${{ github.run_number }}.0.0 | awk '{split($0,a,".");printf "%d.%d.x",a[1],a[2];}'`
102+
echo "::set-output name=main_stream_version::$MAIN_STREAM_VERSION"
103+
99104
- name: Generate version file
100105
run: |
101106
echo "REPLACE INTO project_version_control (version, component_name, component_version_hash) VALUES('${{ github.run_number }}.0.0', '${{ github.event.repository.name }}', '${GITHUB_SHA}');" >> ./docker/version.sql
102-
echo "REPLACE INTO project_version_control (version, component_name) VALUES('${{ github.run_number }}.0.0', 'DongTai');" >> ./docker/version.sql
107+
echo "REPLACE INTO project_version_control (version, component_name) VALUES('${{ steps.version.outputs.main_stream_version }}', 'DongTai');" >> ./docker/version.sql
103108
104109
- name: Login to DockerHub
105110
uses: docker/login-action@v1

0 commit comments

Comments
 (0)