From b9fc31e1680094807885e1bbfcf57caf48321b8d Mon Sep 17 00:00:00 2001 From: Gil Tinde <31830765+giltinde@users.noreply.github.com> Date: Tue, 25 Jun 2024 10:39:01 +0200 Subject: [PATCH 1/2] add CI checks --- .github/workflows/continuous-integration.yml | 32 ++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/continuous-integration.yml diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml new file mode 100644 index 0000000..396e6a8 --- /dev/null +++ b/.github/workflows/continuous-integration.yml @@ -0,0 +1,32 @@ +name: Continous Integration +on: + workflow_dispatch: + pull_request: + branches: + - main + +jobs: + build-image: + runs-on: ubuntu-latest + steps: + - name: Check out the repo + uses: actions/checkout@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Build Docker Image + uses: docker/build-push-action@v5 + with: + context: . + push: false + lint: + runs-on: ubuntu-latest + steps: + - name: Check out the repo + uses: actions/checkout@v3 + + - name: Check linting + uses: rickstaa/action-black@v1 + with: + black_args: ". --check" \ No newline at end of file From 8ce3eef005b218d564c4cc3ae7b072477104b68d Mon Sep 17 00:00:00 2001 From: Gil Tinde <31830765+giltinde@users.noreply.github.com> Date: Tue, 25 Jun 2024 10:41:21 +0200 Subject: [PATCH 2/2] fix: bump version --- deployment/kubernetes/weather-api.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deployment/kubernetes/weather-api.yaml b/deployment/kubernetes/weather-api.yaml index 0238905..92eaed8 100644 --- a/deployment/kubernetes/weather-api.yaml +++ b/deployment/kubernetes/weather-api.yaml @@ -18,7 +18,7 @@ spec: prometheus.io/path: "/metrics" spec: containers: - - image: ghcr.io/openearthplatforminitiative/weather-api:0.1.5 + - image: ghcr.io/openearthplatforminitiative/weather-api:0.1.6 name: weather-api ports: - containerPort: 8080 @@ -26,7 +26,7 @@ spec: - name: API_ROOT_PATH value: "/weather" - name: VERSION - value: "0.1.5" + value: "0.1.6" - name: API_DOMAIN valueFrom: configMapKeyRef: