mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-12-04 05:09:48 +08:00
docker github action
This commit is contained in:
parent
7a11d39f10
commit
5aebdc8b26
8
.github/workflows/ci_e2e.yml
vendored
8
.github/workflows/ci_e2e.yml
vendored
@ -39,9 +39,13 @@ jobs:
|
|||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-maven-
|
${{ runner.os }}-maven-
|
||||||
- name: Build Image
|
- name: Build Image
|
||||||
run: export VERSION=latest && sh ./dockerfile/hooks/build
|
run: |
|
||||||
|
export VERSION=`cat $(pwd)/pom.xml| grep "SNAPSHOT</version>" | awk -F "-SNAPSHOT" '{print $1}' | awk -F ">" '{print $2}'`
|
||||||
|
sh ./dockerfile/hooks/build
|
||||||
- name: Docker Run
|
- name: Docker Run
|
||||||
run: docker run -dit -e POSTGRESQL_USERNAME=test -e POSTGRESQL_PASSWORD=test -p 8888:8888 dolphinscheduler all
|
run: |
|
||||||
|
VERSION=`cat $(pwd)/pom.xml| grep "SNAPSHOT</version>" | awk -F "-SNAPSHOT" '{print $1}' | awk -F ">" '{print $2}'`
|
||||||
|
docker run -dit -e POSTGRESQL_USERNAME=test -e POSTGRESQL_PASSWORD=test -p 8888:8888 dolphinscheduler:$VERSION all
|
||||||
- name: Check Server Status
|
- name: Check Server Status
|
||||||
run: sh ./dockerfile/hooks/check
|
run: sh ./dockerfile/hooks/check
|
||||||
- name: Run e2e Test
|
- name: Run e2e Test
|
||||||
|
@ -18,10 +18,6 @@
|
|||||||
echo "------ dolphinscheduler start - build -------"
|
echo "------ dolphinscheduler start - build -------"
|
||||||
printenv
|
printenv
|
||||||
|
|
||||||
if [[ "${VERSION}x" = "x" ]]; then
|
|
||||||
VERSION=`cat $(pwd)/pom.xml| grep "SNAPSHOT</version>" | awk -F "-SNAPSHOT" '{print $1}' | awk -F ">" '{print $2}'`
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ "${DOCKER_REPO}x" = "x" ]]; then
|
if [[ "${DOCKER_REPO}x" = "x" ]]; then
|
||||||
DOCKER_REPO='dolphinscheduler'
|
DOCKER_REPO='dolphinscheduler'
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user