-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* rustfmt edition 2018 * rust cargo-audit * add rustfmt checks * rename job * test on nightly and stable * fix audit workflow syntax * every day at midnight * add wasm toolchain * audit for every push * use the toolchain init script * re-enable audit on PR * back to matrix * install native packages * docker only on release publishing * use officially supported actions * lowercase repo name * test docker on push * attempt to save space by not testing against the stable toolchain * remove cron in favor of dependabot * docker image only on published release * keep it simple, run audits all the times * simplify rust tests * only cash our deps * apt clean ubuntu * tests with without a third party action
- Loading branch information
1 parent
2123078
commit c82df92
Showing
5 changed files
with
94 additions
and
51 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,12 @@ | ||
name: Security audit | ||
|
||
on: [push] | ||
|
||
jobs: | ||
audit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/audit-check@issue-104 | ||
with: | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,29 @@ | ||
name: Create node docker image | ||
name: Create docker image | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
push_to_registry: | ||
|
||
name: Push Docker image to GitHub Packages | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Copy Repo Files | ||
uses: actions/checkout@master | ||
- name: Publish Docker Image to GPR | ||
uses: machine-learning-apps/gpr-docker-publish@master | ||
with: | ||
cache: true | ||
IMAGE_NAME: 'nodle-chain' | ||
TAG: 'latest' | ||
DOCKERFILE_PATH: '.maintain/docker/Dockerfile' | ||
BUILD_CONTEXT: '.' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Check out the repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Push to GitHub Packages | ||
uses: docker/build-push-action@v1 | ||
with: | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
registry: docker.pkg.github.com | ||
repository: nodlecode/chain/nodle-chain | ||
tag_with_ref: true | ||
dockerfile: '.maintain/docker/Dockerfile' | ||
cache_froms: nodlecode/chain/nodle-chain:latest | ||
add_git_labels: 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
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 @@ | ||
edition = "2018" |
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