-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d4b7312
commit a9a43d3
Showing
13 changed files
with
10,896 additions
and
46 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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
extends: | ||
- '@commitlint/config-conventional' | ||
|
||
rules: | ||
body-max-line-length: | ||
- 1 | ||
- always | ||
- 120 | ||
type-enum: | ||
- 2 | ||
- always | ||
- | ||
- chore | ||
- feat | ||
- fix |
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,31 @@ | ||
name: Build | ||
on: | ||
push: | ||
paths-ignore: | ||
- "examples/*.*" | ||
- "*.md" | ||
branches: | ||
- "master" | ||
pull_request: | ||
branches: | ||
- "master" | ||
jobs: | ||
build_job: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 20 | ||
- uses: wagoid/commitlint-github-action@v4 | ||
with: | ||
configFile: .commitlintrc.yml | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
- run: | | ||
docker run -d -p 5000:5000 registry:2 | ||
- uses: volesen/[email protected] | ||
with: | ||
version: v1.38.0 | ||
- uses: extractions/setup-just@v1 | ||
- run: | | ||
just build | ||
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,24 @@ | ||
name: Publish release | ||
on: | ||
workflow_dispatch | ||
jobs: | ||
rel_job: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- uses: volesen/[email protected] | ||
with: | ||
version: v1.38.0 | ||
- uses: extractions/setup-just@v1 | ||
- uses: docker/login-action@v1 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: bahmutov/npm-install@v1 | ||
- name: semantic-release | ||
run: npx semantic-release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,22 @@ | ||
branches: | ||
- master | ||
|
||
tagFormat: "${version}" | ||
|
||
preset: "conventionalcommits" | ||
|
||
plugins: | ||
- "@semantic-release/commit-analyzer" | ||
- "semantic-release-commitlint" | ||
- "@semantic-release/release-notes-generator" | ||
- | ||
- "@semantic-release/git" | ||
- assets: [] | ||
messsage: false | ||
- | ||
- "@semantic-release/github" | ||
- successComment: false | ||
failComment: false | ||
- | ||
- "@semantic-release/exec" | ||
- publishCmd: "just publish ${nextRelease.version}" |
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,22 +1,20 @@ | ||
# syntax=docker/dockerfile:1.3-labs | ||
FROM openjdk:11-jre as build | ||
|
||
ARG CMAK_VERSION="3.0.0.5" | ||
ARG CMAK_VERSION | ||
|
||
RUN curl -L https://github.com/yahoo/CMAK/releases/download/${CMAK_VERSION}/cmak-${CMAK_VERSION}.zip -o /tmp/cmak.zip \ | ||
&& unzip /tmp/cmak.zip -d / \ | ||
&& ln -s /cmak-$CMAK_VERSION /cmak \ | ||
&& rm -rf /tmp/cmak.zip | ||
RUN <<EOF | ||
set -e | ||
curl -L https://github.com/yahoo/CMAK/releases/download/${CMAK_VERSION}/cmak-${CMAK_VERSION}.zip -o /tmp/cmak.zip | ||
unzip /tmp/cmak.zip -d / | ||
ln -s /cmak-$CMAK_VERSION /cmak | ||
rm -rf /tmp/cmak.zip | ||
EOF | ||
|
||
FROM openjdk:11-jre-slim | ||
MAINTAINER Hleb Albau <[email protected]> | ||
|
||
COPY --from=build /cmak /cmak | ||
|
||
VOLUME /cmak/conf | ||
|
||
ENV JAVA_OPTS=-XX:MaxRAMPercentage=80 | ||
|
||
WORKDIR /cmak | ||
|
||
ENTRYPOINT ["/cmak/bin/cmak", "-Dpidfile.path=/dev/null", "-Dapplication.home=/cmak", ""] | ||
|
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
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,20 @@ | ||
skaffoldTags := "tags.json" | ||
|
||
# list available receipes | ||
default: | ||
just --list | ||
|
||
build: | ||
skaffold build -d localhost:5000 | ||
|
||
publish version: | ||
#!/usr/bin/env bash | ||
set -euxo pipefail | ||
skaffold build -t {{version}} --file-output={{skaffoldTags}} | ||
|
||
LATEST="$(jq -r .builds[0].imageName {{skaffoldTags}}):latest" | ||
CURRENT="$(jq -r .builds[0].tag {{skaffoldTags}})" | ||
|
||
docker tag $CURRENT $LATEST | ||
docker push $LATEST |
Oops, something went wrong.