-
Notifications
You must be signed in to change notification settings - Fork 11
45 lines (34 loc) · 1.39 KB
/
yezzey-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Yezzey testing
on:
push:
branches: [ "OPENGPDB_STABLE", "OPENGPDB_6_27_STABLE", "MDB_6_25_STABLE_YEZZEY" ]
pull_request:
branches: [ "OPENGPDB_STABLE", "OPENGPDB_6_27_STABLE", "MDB_6_25_STABLE_YEZZEY" ]
jobs:
build_and_run_yezzey:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup S3
run: |
docker network create -d bridge yezzey_test_network
docker run -p 9000:9000 \
-p 9001:9001 \
--name s3_gpyezzey \
--network yezzey_test_network \
-d -e "MINIO_ROOT_USER=some_key" \
-e "MINIO_ROOT_PASSWORD=some_key" \
quay.io/minio/minio server /data
docker exec s3_gpyezzey mc alias set myminio http://localhost:9000 some_key some_key
docker exec s3_gpyezzey mc mb myminio/gpyezzey
- name: Build
run: docker build . \
--file docker/yezzey/Dockerfile \
--network yezzey_test_network \
--tag yezzey_test:1234 \
--build-arg accessKeyId=some_key \
--build-arg secretAccessKey=some_key \
--build-arg bucketName=gpyezzey \
--build-arg s3endpoint=http:\\/\\/$(docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' s3_gpyezzey):9000
- name: Test Yezzey
run: docker run --network yezzey_test_network yezzey_test:1234