-
-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #368 from metrico/3.0
3.0 Release
- Loading branch information
Showing
83 changed files
with
8,373 additions
and
507 deletions.
There are no files selected for viewing
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
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 | ||
|
@@ -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 }} | ||
|
@@ -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] | ||
|
@@ -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 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
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
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
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" ] |
Oops, something went wrong.