Skip to content

Commit

Permalink
Merge pull request #368 from metrico/3.0
Browse files Browse the repository at this point in the history
3.0 Release
  • Loading branch information
akvlad authored Oct 30, 2023
2 parents 0fa66cd + 5636c85 commit 12e519c
Show file tree
Hide file tree
Showing 83 changed files with 8,373 additions and 507 deletions.
Original file line number Diff line number Diff line change
@@ -1,39 +1,30 @@
name: 'Build Multi-Arch'
name: 'CI+CD'

on:
push:
branches:
- 'master'
paths-ignore:
- '**.md'
- '**.yml'
- '**.yaml'
release:
types: [created]
workflow_dispatch:
inputs:
TAG_NAME:
description: 'Release Version Tag (0.0.0)'
required: true

jobs:
bump-version:
name: 'Bump Version on master & Publish'
build:
name: 'Build & Publish'
runs-on: ubuntu-latest

steps:
- name: 'Checkout source code'
uses: 'actions/checkout@v2'
uses: 'actions/checkout@v3'
with:
ref: ${{ github.ref }}
- name: 'cat package.json'
run: cat ./package.json
- name: 'Automated Version Bump'
id: version-bump
uses: 'phips28/gh-action-bump-version@master'
with:
tag-prefix: 'v'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: 'cat package.json'
run: cat ./package.json
- name: 'Output Step'
env:
NEW_TAG: ${{ steps.version-bump.outputs.newTag }}
run: echo "new tag $NEW_TAG"
- uses: MYXOMOPX/[email protected]
id: setcmnver
with:
target: ./package.json
action: "set_version"
argument: "${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }}"
- name: Check NPM secret presence
id: checksecrets
shell: bash
Expand All @@ -45,15 +36,16 @@ jobs:
fi
env:
SECRET: ${{ secrets.NPM_TOKEN }}
- uses: actions/setup-node@v1
- uses: actions/setup-node@v4.0.0
if: ${{ steps.checksecrets.outputs.secretspresent }}
with:
node-version: 14
node-version: 18
- name: Publish to NPM
if: ${{ steps.checksecrets.outputs.secretspresent }}
run: |
npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
npm install
npm audit --fix
npm publish --access public
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down Expand Up @@ -84,18 +76,31 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push to Docker Hub
if: ${{ steps.checkdocker.outputs.secretspresent }}
id: docker_build
uses: docker/[email protected]
with:
platforms: linux/amd64, linux/arm64
push: true
tags: |
qxip/qryn:latest
qxip/qryn:${{ steps.version-bump.outputs.newTag }}
qxip/qryn:${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }}
qxip/cloki:latest
qxip/cloki:${{ steps.version-bump.outputs.newTag }}
qxip/cloki:${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }}
- name: Build and push to Docker Hub (bun)
if: ${{ steps.checkdocker.outputs.secretspresent }}
uses: docker/[email protected]
with:
platforms: linux/amd64, linux/arm64
file: ./Dockerfile_bun
push: true
tags: |
qxip/qryn:bun
qxip/qryn:${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }}-bun
qxip/cloki:bun
qxip/cloki:${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }}-bun
- name: Log in to the GHCR registry
uses: docker/[email protected]
Expand All @@ -108,7 +113,18 @@ jobs:
uses: docker/[email protected]
with:
platforms: linux/amd64, linux/arm64
file: ./Dockerfile
push: true
tags: |
ghcr.io/metrico/qryn:latest
ghcr.io/metrico/qryn:${{ steps.version-bump.outputs.newTag }}
ghcr.io/metrico/qryn:${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }}
- name: Build and push to GHCR (bun)
uses: docker/[email protected]
with:
platforms: linux/amd64, linux/arm64
file: ./Dockerfile_bun
push: true
tags: |
ghcr.io/metrico/qryn:bun
ghcr.io/metrico/qryn:${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }}-bun
95 changes: 0 additions & 95 deletions .github/workflows/bump_version_beta.yml

This file was deleted.

41 changes: 0 additions & 41 deletions .github/workflows/ghcr_push.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/node-clickhouse.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:

strategy:
matrix:
node-version: [18, 16.x]
node-version: [18, 16.x, 20]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
Expand All @@ -43,4 +43,4 @@ jobs:
CLICKHOUSE_TSDB: loki
INTEGRATION_E2E: 1
CLOKI_EXT_URL: 127.0.0.1:3100
run: node qryn.js >/dev/stdout & npm run test --forceExit
run: node qryn.mjs >/dev/stdout & npm run test --forceExit
33 changes: 0 additions & 33 deletions .github/workflows/npm-clickhouse.yml

This file was deleted.

5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ node_modules
/test/e2e/
/lib/influx/.idea/
/lib/influx/influx.iml
/wasm_parts/_vendor.zip
/wasm_parts/.idea/
/wasm_parts/vendor/
/wasm_parts/main.wasm
/wasm_parts/wasm_parts.iml
15 changes: 15 additions & 0 deletions Dockerfile_bun
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# qryn bun builder
FROM oven/bun:alpine

# BUILD FORCE
ENV BUILD 20231027
ENV PORT 3100

COPY . /app
WORKDIR /app
RUN rm -rf package-lock.json
RUN bun install

# Expose Ports
EXPOSE 3100
CMD [ "bun", "qryn.mjs" ]
Loading

0 comments on commit 12e519c

Please sign in to comment.