-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from CMCC-Foundation/feature_1
Feature #1
- Loading branch information
Showing
10 changed files
with
164 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
name: Build Docker images for geolake components and push to the repository | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.x" | ||
- name: Install build | ||
run: >- | ||
python3 -m | ||
pip install | ||
build | ||
--user | ||
- name: Build a binary wheel and a source for drivers | ||
run: python3 -m build ./drivers | ||
- name: Set Docker image tag name | ||
run: echo "TAG=$(date +'%Y.%m.%d.%H.%M')" >> $GITHUB_ENV | ||
- name: Login to Scaleway Container Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
username: nologin | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
registry: ${{ vars.DOCKER_REGISTRY }} | ||
- name: Get release tag | ||
run: echo "RELEASE_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- name: Build and push drivers | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: ./drivers | ||
file: ./drivers/Dockerfile | ||
push: true | ||
build-args: | | ||
REGISTRY=${{ vars.DOCKER_REGISTRY }} | ||
tags: | | ||
${{ vars.DOCKER_REGISTRY }}/geolake-drivers:${{ env.RELEASE_TAG }} | ||
${{ vars.DOCKER_REGISTRY }}/geolake-drivers:latest | ||
- name: Build and push datastore component | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: ./datastore | ||
file: ./datastore/Dockerfile | ||
push: true | ||
build-args: | | ||
REGISTRY=${{ vars.DOCKER_REGISTRY }} | ||
tags: | | ||
${{ vars.DOCKER_REGISTRY }}/geolake-datastore:${{ env.RELEASE_TAG }} | ||
${{ vars.DOCKER_REGISTRY }}/geolake-datastore:latest | ||
- name: Build and push api component | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: ./api | ||
file: ./api/Dockerfile | ||
push: true | ||
build-args: | | ||
REGISTRY=${{ vars.DOCKER_REGISTRY }} | ||
tags: | | ||
${{ vars.DOCKER_REGISTRY }}/geolake-api:${{ env.RELEASE_TAG }} | ||
${{ vars.DOCKER_REGISTRY }}/geolake-api:latest | ||
- name: Build and push executor component | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: ./executor | ||
file: ./executor/Dockerfile | ||
push: true | ||
build-args: | | ||
REGISTRY=${{ vars.DOCKER_REGISTRY }} | ||
tags: | | ||
${{ vars.DOCKER_REGISTRY }}/geolake-executor:${{ env.RELEASE_TAG }} | ||
${{ vars.DOCKER_REGISTRY }}/geolake-executor:latest |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
name: Build Docker images for geolake components and push to the repository | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize] | ||
workflow_dispatch: | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.x" | ||
- name: Install build | ||
run: >- | ||
python3 -m | ||
pip install | ||
build | ||
--user | ||
- name: Build a binary wheel and a source for drivers | ||
run: python3 -m build ./drivers | ||
- name: Set Docker image tag name | ||
run: echo "TAG=$(date +'%Y.%m.%d.%H.%M')" >> $GITHUB_ENV | ||
- name: Login to Scaleway Container Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
username: nologin | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
registry: ${{ vars.DOCKER_REGISTRY }} | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- name: Build and push drivers | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: ./drivers | ||
file: ./drivers/Dockerfile | ||
push: true | ||
build-args: | | ||
REGISTRY=${{ vars.DOCKER_REGISTRY }} | ||
tags: | | ||
${{ vars.DOCKER_REGISTRY }}/geolake-drivers:${{ env.TAG }} | ||
${{ vars.DOCKER_REGISTRY }}/geolake-drivers:latest | ||
- name: Build and push datastore component | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: ./datastore | ||
file: ./datastore/Dockerfile | ||
push: true | ||
build-args: | | ||
REGISTRY=${{ vars.DOCKER_REGISTRY }} | ||
tags: | | ||
${{ vars.DOCKER_REGISTRY }}/geolake-datastore:${{ env.TAG }} | ||
${{ vars.DOCKER_REGISTRY }}/geolake-datastore:latest | ||
- name: Build and push api component | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: ./api | ||
file: ./api/Dockerfile | ||
push: true | ||
build-args: | | ||
REGISTRY=${{ vars.DOCKER_REGISTRY }} | ||
tags: | | ||
${{ vars.DOCKER_REGISTRY }}/geolake-api:${{ env.TAG }} | ||
${{ vars.DOCKER_REGISTRY }}/geolake-api:latest | ||
- name: Build and push executor component | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: ./executor | ||
file: ./executor/Dockerfile | ||
push: true | ||
build-args: | | ||
REGISTRY=${{ vars.DOCKER_REGISTRY }} | ||
tags: | | ||
${{ vars.DOCKER_REGISTRY }}/geolake-executor:${{ env.TAG }} | ||
${{ vars.DOCKER_REGISTRY }}/geolake-executor:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# intake-geokube | ||
# geolake-drivers | ||
GeoKube plugin for Intake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters