Merge pull request #2559 from kuzzleio/fix/elasticsearch_github_link #16
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
name: kuzzleio/plugin-dev | |
on: | |
push: | |
branches: | |
- master | |
env: | |
DOCKER_PLATFORMS: "linux/amd64,linux/arm64,linux/arm/v7" | |
jobs: | |
dockerhub-deploy: | |
name: Kuzzle plugin-dev Node.js | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout project | |
uses: actions/checkout@v4 | |
- 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: ${{ env.DOCKER_PLATFORMS }} | |
tags: kuzzleio/plugin-dev:${{ steps.get-version.outputs.major-version }},kuzzleio/plugin-dev:latest,kuzzleio/plugin-dev:${{ steps.get-version.outputs.version }} |