-
Notifications
You must be signed in to change notification settings - Fork 18
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 #248 from samply/develop
Release v0.8.0
- Loading branch information
Showing
538 changed files
with
686,776 additions
and
56,172 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,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} |
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,2 @@ | ||
node_modules | ||
dist |
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,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' |
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,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); | ||
} |
Oops, something went wrong.