Skip to content

Merge branch 'master' into beta #11

Merge branch 'master' into beta

Merge branch 'master' into beta #11

Workflow file for this run

name: kuzzleio/kuzzle
on:
push:
branches:
- master
env:
DOCKER_PLATFORMS: "linux/amd64,linux/arm64,linux/arm/v7"
NODE_VERSION: "20"
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
build-args: NODE_VERSION=${{ env.NODE_VERSION }}
platforms: ${{ env.DOCKER_PLATFORMS }}
tags: kuzzleio/kuzzle:${{ steps.get-version.outputs.major-version }},kuzzleio/kuzzle:latest,kuzzleio/kuzzle:${{ steps.get-version.outputs.version }}