1+ name : Build geolake docker images for geolake components and push to the repository
2+
3+ on :
4+ push :
5+ tags :
6+ - ' v*'
7+ jobs :
8+ build :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - uses : actions/checkout@v3
12+ - name : Set up Python
13+ uses : actions/setup-python@v4
14+ with :
15+ python-version : " 3.x"
16+ - name : Install build
17+ run : >-
18+ python3 -m
19+ pip install
20+ build
21+ --user
22+ - name : Build a binary wheel and a source for drivers
23+ run : python3 -m build ./drivers
24+ - name : Get release tag
25+ run : echo "RELEASE_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
26+ - name : Login to Scaleway Container Registry
27+ uses : docker/login-action@v2
28+ with :
29+ username : nologin
30+ password : ${{ secrets.DOCKER_PASSWORD }}
31+ registry : ${{ vars.GEOLAKE_REGISTRY }}
32+ - name : Set up Docker Buildx
33+ uses : docker/setup-buildx-action@v2
34+ - name : Build and push drivers
35+ uses : docker/build-push-action@v4
36+ with :
37+ context : ./drivers
38+ file : ./drivers/Dockerfile
39+ push : true
40+ build-args : |
41+ REGISTRY=${{ vars.GEOKUBE_REGISTRY }}
42+ tags : |
43+ ${{ vars.GEOLAKE_REGISTRY }}/geolake-drivers:${{ env.RELEASE_TAG }}
44+ - name : Build and push datastore component
45+ uses : docker/build-push-action@v4
46+ with :
47+ context : ./datastore
48+ file : ./datastore/Dockerfile
49+ push : true
50+ build-args : |
51+ REGISTRY=${{ vars.GEOLAKE_REGISTRY }}
52+ tags : |
53+ ${{ vars.GEOLAKE_REGISTRY }}/geolake-datastore:${{ env.RELEASE_TAG }}
54+ - name : Build and push api component
55+ uses : docker/build-push-action@v4
56+ with :
57+ context : ./api
58+ file : ./api/Dockerfile
59+ push : true
60+ build-args : |
61+ REGISTRY=${{ vars.GEOLAKE_REGISTRY }}
62+ tags : |
63+ ${{ vars.GEOLAKE_REGISTRY }}/geolake-api:${{ env.RELEASE_TAG }}
64+ - name : Build and push executor component
65+ uses : docker/build-push-action@v4
66+ with :
67+ context : ./executor
68+ file : ./executor/Dockerfile
69+ push : true
70+ build-args : |
71+ REGISTRY=${{ vars.GEOLAKE_REGISTRY }}
72+ tags : |
73+ ${{ vars.GEOLAKE_REGISTRY }}/geolake-executor:${{ env.RELEASE_TAG }}
0 commit comments