Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 2.27.3 #2509

Merged
merged 5 commits into from
Dec 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 0 additions & 32 deletions .github/actions/dockerhub/action.yml

This file was deleted.

42 changes: 42 additions & 0 deletions .github/workflows/kuzzle-core.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: kuzzleio/kuzzle

on:
push:
branches:
- master

jobs:
dockerhub-deploy:
name: Kuzzle core Node.js
runs-on: ubuntu-22.04
steps:
- name: Checkout project
uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Get current version from package.json
shell: bash
id: get-version
run: |
echo "version=$(jq -r .version package.json)" >> $GITHUB_OUTPUT
echo "major-version=$(jq -r .version package.json | cut -d. -f 1)" >> $GITHUB_OUTPUT

- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: ./docker/images/kuzzle/Dockerfile
push: true
platforms: "linux/amd64,linux/arm64"
tags: kuzzleio/kuzzle:${{ steps.get-version.outputs.major-version }},kuzzleio/kuzzle:latest,kuzzleio/kuzzle:${{ steps.get-version.outputs.version }}
42 changes: 42 additions & 0 deletions .github/workflows/kuzzle-plugin-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: kuzzleio/plugin-dev

on:
push:
branches:
- master

jobs:
dockerhub-deploy:
name: Kuzzle plugin-dev Node.js
runs-on: ubuntu-22.04
steps:
- name: Checkout project
uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Get current version from package.json
shell: bash
id: get-version
run: |
echo "version=$(jq -r .version package.json)" >> $GITHUB_OUTPUT
echo "major-version=$(jq -r .version package.json | cut -d. -f 1)" >> $GITHUB_OUTPUT

- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: ./docker/images/plugin-dev/Dockerfile
push: true
platforms: "linux/amd64,linux/arm64"
tags: kuzzleio/plugin-dev:${{ steps.get-version.outputs.major-version }},kuzzleio/plugin-dev:latest,kuzzleio/plugin-dev:${{ steps.get-version.outputs.version }}
1 change: 0 additions & 1 deletion .github/workflows/kuzzle-runner.workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3

- name: Login to DockerHub
Expand Down
67 changes: 0 additions & 67 deletions .github/workflows/workflow-deployments.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@ on:
default: "20"
type: string

docker_platforms:
description: "Docker platforms"
required: true
default: "linux/amd64,linux/arm64"
type: string
workflow_dispatch:
inputs:
doc_deploy:
Expand All @@ -34,12 +29,6 @@ on:
default: true
type: boolean

dockerhub_deploy:
description: "Deploy to DockerHub"
required: true
default: true
type: boolean

npm_deploy:
description: "Deploy to NPM"
required: true
Expand All @@ -64,11 +53,6 @@ on:
default: "20"
type: string

docker_platforms:
description: "Docker platforms"
required: true
default: "linux/amd64,linux/arm64"
type: string

jobs:
# -----------------------------------------------------------------------------
Expand Down Expand Up @@ -99,57 +83,6 @@ jobs:
ref: ${{ github.ref_name == 'master' && 'master' || 'develop' }}
client_payload: '{"repo_name":"${{ steps.extract-refs.outputs.repo }}","branch":"${{ github.head_ref }}","version":"${{ steps.extract-refs.outputs.major-version }}"}'

dockerhub-deploy:
name: Build and deploy images to Dockerhub
if: ${{ (github.event_name != 'workflow_dispatch' || inputs.dockerhub_deploy) && github.ref_name == 'master' }}
runs-on: ubuntu-22.04
steps:
- name: Checkout project
uses: actions/checkout@v3

- name: Install additional libraries
uses: ./.github/actions/install-packages

- name: Node version ${{ inputs.node_lts_active_version }}
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node_lts_active_version }}
cache: 'npm'

- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1

- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Get current version from package.json
shell: bash
id: get-version
run: |
echo "version=$(jq -r .version package.json)" >> $GITHUB_OUTPUT
echo "major-version=$(jq -r .version package.json | cut -d. -f 1)" >> $GITHUB_OUTPUT

- name: Build TS files
run: |
npm ci
npm run build

- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: ./docker/images/kuzzle/Dockerfile
push: true
platforms: ${{ inputs.docker_platforms }}
tags: kuzzleio/kuzzle:${{ steps.get-version.outputs.major-version }},kuzzleio/kuzzle:latest,kuzzleio/kuzzle:${{ steps.get-version.outputs.version }}

npm-deploy:
name: Build and deploy release on NPM.js
if: ${{ (github.event_name != 'workflow_dispatch' || inputs.npm_deploy) && github.ref_name == 'master' }}
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ env:
NODE_LTS_MAINTENANCE_VERSION: "16"
NODE_LTS_ACTIVE_VERSION: "18"
NODE_LTS_CURRENT_VERSION: "20"
DOCKER_PLATFORMS: "linux/amd64,linux/arm64"

jobs:
prepare-matrix:
Expand All @@ -26,7 +25,6 @@ jobs:
node_lts_maintenance_version: ${{ env.NODE_LTS_MAINTENANCE_VERSION }}
node_lts_active_version: ${{ env.NODE_LTS_ACTIVE_VERSION }}
node_lts_current_version: ${{ env.NODE_LTS_CURRENT_VERSION }}
docker_platforms: ${{ env.DOCKER_PLATFORMS }}

error-codes-check:
name: Documentation - Error codes check
Expand Down Expand Up @@ -213,4 +211,3 @@ jobs:
node_lts_maintenance_version: ${{ needs.prepare-matrix.outputs.node_lts_maintenance_version }}
node_lts_active_version: ${{ needs.prepare-matrix.outputs.node_lts_active_version }}
node_lts_current_version: ${{ needs.prepare-matrix.outputs.node_lts_current_version }}
docker_platforms: ${{ needs.prepare-matrix.outputs.docker_platforms }}
131 changes: 0 additions & 131 deletions docker/build-docker-images.sh

This file was deleted.

Loading
Loading