Skip to content

Commit

Permalink
update proton docker image to ghcr.io (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
qijun-niu-timeplus authored Sep 7, 2023
1 parent 5649085 commit 3871bcb
Show file tree
Hide file tree
Showing 34 changed files with 197 additions and 287 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/manual_trigger_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,18 +56,18 @@ jobs:
# build unit test docker image
cp $GITHUB_WORKSPACE/output/unit_tests_dbms $GITHUB_WORKSPACE/docker/test/proton_unit_test/
cd $GITHUB_WORKSPACE/docker/test/proton_unit_test/
docker build . -t timeplus/proton-unit-test:$TAG
docker push timeplus/proton-unit-test:$TAG
docker build . -t ghcr.io/timeplus-io/proton-unit-test:$TAG
docker push ghcr.io/timeplus-io/proton-unit-test:$TAG
docker run --name static-server -p 8080:80 -v $GITHUB_WORKSPACE/output:/usr/share/nginx/html:ro -d nginx
cd $GITHUB_WORKSPACE/docker/server
# build docker image
docker build . --network host --build-arg single_binary_location_url=http://localhost:8080/proton -t timeplus/proton:$TAG
docker build . --network host --build-arg single_binary_location_url=http://localhost:8080/proton -t ghcr.io/timeplus-io/proton:$TAG
# push docker image
docker push timeplus/proton:$TAG
echo "docker pull timeplus/proton:$TAG"
docker push ghcr.io/timeplus-io/proton:$TAG
echo "docker push ghcr.io/timeplus-io/proton:$TAG"
steps:
- name: display command
run: |
Expand Down Expand Up @@ -100,18 +100,18 @@ jobs:
cd $GITHUB_WORKSPACE/docker/server
# build docker image
docker build . --network host --build-arg single_binary_location_url=http://localhost:8080/proton -t timeplus/proton:$TAG
docker build . --network host --build-arg single_binary_location_url=http://localhost:8080/proton -t ghcr.io/timeplus-io/proton:$TAG
# push docker image
docker push timeplus/proton:$TAG
echo "docker pull timeplus/proton:$TAG"
docker push ghcr.io/timeplus-io/proton:$TAG
echo "docker pull ghcr.io/timeplus-io/proton:$TAG"
steps:
- name: display command
run: |
echo 'command: ${{ steps.set_command.outputs.command }}'
build_x64:
needs: prepare_sanitizer
uses: timeplus-io/proton/.github/workflows/run_command.yml@develop
uses: timeplus-io/proton/.github/workflows/run_command.yml@feature/issue-50-upload-to-ghcr
if: github.event.inputs.arch == 'x64' && github.event.inputs.build_type != 'release'
with:
ec2-instance-type: ${{ vars.X64_INSTANCE_TYPE }}
Expand All @@ -133,7 +133,7 @@ jobs:
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
build_x64_release:
needs: prepare_release
uses: timeplus-io/proton/.github/workflows/run_command.yml@develop
uses: timeplus-io/proton/.github/workflows/run_command.yml@feature/issue-50-upload-to-ghcr
if: github.event.inputs.arch == 'x64' && github.event.inputs.build_type == 'release'
with:
ec2-instance-type: ${{ vars.X64_INSTANCE_TYPE }}
Expand All @@ -155,7 +155,7 @@ jobs:
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
build_arm:
needs: prepare_sanitizer
uses: timeplus-io/proton/.github/workflows/run_command.yml@develop
uses: timeplus-io/proton/.github/workflows/run_command.yml@feature/issue-50-upload-to-ghcr
if: github.event.inputs.arch == 'arm' && github.event.inputs.build_type != 'release'
with:
ec2-instance-type: ${{ vars.ARM_INSTANCE_TYPE }}
Expand All @@ -177,7 +177,7 @@ jobs:
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
build_arm_release:
needs: prepare_release
uses: timeplus-io/proton/.github/workflows/run_command.yml@develop
uses: timeplus-io/proton/.github/workflows/run_command.yml@feature/issue-50-upload-to-ghcr
if: github.event.inputs.arch == 'arm' && github.event.inputs.build_type == 'release'
with:
ec2-instance-type: ${{ vars.ARM_INSTANCE_TYPE }}
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/manual_trigger_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
outputs:
command: |
# pull docker image
docker pull timeplus/proton:$TAG
docker pull ghcr.io/timeplus-io/proton:$TAG
echo "run stream test"
cd $GITHUB_WORKSPACE/tests/stream
Expand Down Expand Up @@ -82,7 +82,7 @@ jobs:
echo 'command: ${{ steps.set_command.outputs.command }}'
smoke_test_on_x64:
needs: prepare_smoke_test
uses: timeplus-io/proton/.github/workflows/run_command.yml@develop
uses: timeplus-io/proton/.github/workflows/run_command.yml@feature/issue-50-upload-to-ghcr
if: github.event.inputs.arch == 'x64'
with:
ec2-instance-type: ${{ vars.X64_INSTANCE_TYPE }}
Expand All @@ -107,7 +107,7 @@ jobs:
TIMEPLUS_WORKSPACE: ${{ secrets.TIMEPLUS_WORKSPACE }}
smoke_test_on_arm:
needs: prepare_smoke_test
uses: timeplus-io/proton/.github/workflows/run_command.yml@develop
uses: timeplus-io/proton/.github/workflows/run_command.yml@feature/issue-50-upload-to-ghcr
if: github.event.inputs.arch == 'arm'
with:
ec2-instance-type: ${{ vars.ARM_INSTANCE_TYPE }}
Expand Down Expand Up @@ -137,7 +137,7 @@ jobs:
command: |
# pull docker image
docker pull timeplus/proton:$TAG
docker pull ghcr.io/timeplus-io/proton:$TAG
echo "run quary compatibility test"
# cd $GITHUB_WORKSPACE/tests/stream
Expand Down Expand Up @@ -179,7 +179,7 @@ jobs:
echo 'command: ${{ steps.set_command.outputs.command }}'
query_compability_test_on_x64:
needs: prepare_query_compability_test
uses: timeplus-io/proton/.github/workflows/run_command.yml@develop
uses: timeplus-io/proton/.github/workflows/run_command.yml@feature/issue-50-upload-to-ghcr
if: github.event.inputs.arch == 'x64'
with:
ec2-instance-type: ${{ vars.X64_TEST_ONLY_INSTANCE_TYPE_SMALL }}
Expand All @@ -206,7 +206,7 @@ jobs:
TP_DEMO_SITE_API_KEY: ${{ secrets.TP_DEMO_SITE_API_KEY }}
query_compability_on_arm:
needs: prepare_query_compability_test
uses: timeplus-io/proton/.github/workflows/run_command.yml@develop
uses: timeplus-io/proton/.github/workflows/run_command.yml@feature/issue-50-upload-to-ghcr
if: github.event.inputs.arch == 'arm'
with:
ec2-instance-type: ${{ vars.ARM_TEST_ONLY_INSTANCE_TYPE_SMALL }}
Expand Down Expand Up @@ -254,7 +254,7 @@ jobs:
echo 'command: ${{ steps.set_command.outputs.command }}'
unit_test_on_x64:
needs: prepare_unit_test
uses: timeplus-io/proton/.github/workflows/run_command.yml@develop
uses: timeplus-io/proton/.github/workflows/run_command.yml@feature/issue-50-upload-to-ghcr
if: github.event.inputs.arch == 'x64'
with:
ec2-instance-type: ${{ vars.X64_INSTANCE_TYPE }}
Expand All @@ -279,7 +279,7 @@ jobs:
TIMEPLUS_WORKSPACE: ${{ secrets.TIMEPLUS_WORKSPACE }}
unit_test_on_arm:
needs: prepare_unit_test
uses: timeplus-io/proton/.github/workflows/run_command.yml@develop
uses: timeplus-io/proton/.github/workflows/run_command.yml@feature/issue-50-upload-to-ghcr
if: github.event.inputs.arch == 'arm'
with:
ec2-instance-type: ${{ vars.ARM_INSTANCE_TYPE }}
Expand Down Expand Up @@ -326,7 +326,7 @@ jobs:
echo 'command: ${{ steps.set_command.outputs.command }}'
stateless_test_on_x64:
needs: prepare_stateless_test
uses: timeplus-io/proton/.github/workflows/run_command.yml@develop
uses: timeplus-io/proton/.github/workflows/run_command.yml@feature/issue-50-upload-to-ghcr
if: github.event.inputs.arch == 'x64'
with:
ec2-instance-type: ${{ vars.X64_INSTANCE_TYPE }}
Expand All @@ -351,7 +351,7 @@ jobs:
TIMEPLUS_WORKSPACE: ${{ secrets.TIMEPLUS_WORKSPACE }}
stateless_test_on_arm:
needs: prepare_stateless_test
uses: timeplus-io/proton/.github/workflows/run_command.yml@develop
uses: timeplus-io/proton/.github/workflows/run_command.yml@feature/issue-50-upload-to-ghcr
if: github.event.inputs.arch == 'arm'
with:
ec2-instance-type: ${{ vars.ARM_INSTANCE_TYPE }}
Expand Down Expand Up @@ -398,7 +398,7 @@ jobs:
echo 'command: ${{ steps.set_command.outputs.command }}'
stateful_test_on_x64:
needs: prepare_stateful_test
uses: timeplus-io/proton/.github/workflows/run_command.yml@develop
uses: timeplus-io/proton/.github/workflows/run_command.yml@feature/issue-50-upload-to-ghcr
if: github.event.inputs.arch == 'x64'
with:
ec2-instance-type: ${{ vars.X64_INSTANCE_TYPE }}
Expand All @@ -423,7 +423,7 @@ jobs:
TIMEPLUS_WORKSPACE: ${{ secrets.TIMEPLUS_WORKSPACE }}
stateful_test_on_arm:
needs: prepare_stateful_test
uses: timeplus-io/proton/.github/workflows/run_command.yml@develop
uses: timeplus-io/proton/.github/workflows/run_command.yml@feature/issue-50-upload-to-ghcr
if: github.event.inputs.arch == 'arm'
with:
ec2-instance-type: ${{ vars.ARM_INSTANCE_TYPE }}
Expand Down
Loading

0 comments on commit 3871bcb

Please sign in to comment.