Skip to content

Commit

Permalink
Merge pull request #248 from samply/develop
Browse files Browse the repository at this point in the history
Release v0.8.0
  • Loading branch information
alexanderkiel authored Oct 27, 2020
2 parents c945ccc + ec4a9f1 commit 6573301
Show file tree
Hide file tree
Showing 538 changed files with 686,776 additions and 56,172 deletions.
31 changes: 6 additions & 25 deletions .clj-kondo/config.edn
Original file line number Diff line number Diff line change
@@ -1,26 +1,7 @@
{:lint-as
{blaze.elm.compiler/defunop clojure.core/defn
blaze.elm.compiler/defbinop clojure.core/defn
blaze.elm.compiler/defternop clojure.core/defn
blaze.elm.compiler/defnaryop clojure.core/defn
blaze.elm.compiler/defaggop clojure.core/defn
blaze.elm.compiler/defbinopp clojure.core/defn
blaze.elm.compiler/defunopp clojure.core/defn
clojure.test.check.properties/for-all clojure.core/let
datomic-tools.schema/defunc clojure.core/defn
manifold.deferred/loop clojure.core/loop
manifold.deferred/let-flow clojure.core/let
manifold.deferred/let-flow' clojure.core/let
prometheus.alpha/defcounter clojure.core/def
prometheus.alpha/defhistogram clojure.core/def}
{:linters
{:unsorted-required-namespaces
{:level :error}
:single-key-in
{:level :error}}

:linters
{:unused-private-var
{:exclude
[blaze.datomic.value/string-short-len-code
blaze.datomic.value/string-int-len-code
blaze.datomic.value/boolean-code]}

;; because of macros in modules/cql/src/blaze/elm/compiler.clj
:redefined-var
{:level :off}}}
:skip-comments true}
2 changes: 2 additions & 0 deletions .github/actions/run-blaze/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
dist
12 changes: 12 additions & 0 deletions .github/actions/run-blaze/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: run-blaze
description: 'Runs Blaze as Docker container'
inputs:
username:
description: 'Docker username'
required: true
password:
description: 'Docker password'
required: true
runs:
using: 'node12'
main: 'dist/index.js'
42 changes: 42 additions & 0 deletions .github/actions/run-blaze/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
const core = require('@actions/core');
const {exec} = require('child_process');

try {
const tag = process.env['GITHUB_REF'].split('/', 3)[2];
const username = core.getInput('username')
const password = core.getInput('password')
exec('docker login -u ' + username + ' -p ' + password + ' docker.pkg.github.com', (error, stdout, stderr) => {
if (error) {
core.setFailed(`Error while docker login: ${error}`);
return;
}
console.log(stdout);

exec('docker pull docker.pkg.github.com/samply/blaze/main:' + tag, (error, stdout, stderr) => {
if (error) {
core.setFailed(`Error while docker pull: ${error}`);
return;
}
console.log(stdout);

exec('docker run --name blaze -d -p 8080:8080 -v blaze-data:/app/data docker.pkg.github.com/samply/blaze/main:' + tag, (error, stdout, stderr) => {
if (error) {
core.setFailed(`Error while docker run: ${error}`);
return;
}
console.log(stdout);

setTimeout(_ => exec('docker logs blaze', (error, stdout, stderr) => {
if (error) {
core.setFailed(`Error while docker logs blaze: ${error}`);
return;
}
console.log(stdout);
}), 50000);
});
});
});

} catch (error) {
core.setFailed(error.message);
}
Loading

0 comments on commit 6573301

Please sign in to comment.