Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Build push action v2
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
- Loading branch information
CrazyMax
committed
Aug 15, 2020
1 parent
3f08c86
commit 99bea38
Showing
22 changed files
with
2,772 additions
and
308 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,2 @@ | ||
/dist/** linguist-generated=true | ||
/lib/** linguist-generated=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,83 @@ | ||
name: ci | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- v2-working-branch # remove when merged to master | ||
pull_request: | ||
branches: | ||
- master | ||
- v2-working-branch # remove when merged to master | ||
|
||
jobs: | ||
main: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Runner info | ||
run: | | ||
sudo apt-get install -y hwinfo | ||
sudo hwinfo --short | ||
sudo mount | ||
- | ||
name: Run local registry | ||
run: | | ||
docker run -d -p 5000:5000 registry:2 | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v2.3.1 | ||
- | ||
name: Build | ||
uses: ./ | ||
with: | ||
context: ./test | ||
file: ./test/Dockerfile | ||
tags: | | ||
localhost:5000/name/app:latest | ||
localhost:5000/name/app:1.0.0 | ||
- | ||
name: Dump context | ||
uses: crazy-max/ghaction-dump-context@v1 | ||
|
||
buildx: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
dockerfile: | ||
- multi | ||
- multi-golang | ||
- multi-sudo | ||
steps: | ||
- | ||
name: Run local registry | ||
run: | | ||
docker run -d -p 5000:5000 registry:2 | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v2.3.1 | ||
- | ||
name: Set up QEMU | ||
uses: ./setup-qemu/ # change to docker/setup-qemu-action@master | ||
with: | ||
platforms: all | ||
- | ||
name: Set up Docker Buildx | ||
id: buildx | ||
uses: ./setup-buildx/ # change to docker/setup-buildx-action@master | ||
- | ||
name: Build and push | ||
uses: ./ | ||
with: | ||
context: ./test | ||
file: ./test/Dockerfile-${{ matrix.dockerfile }} | ||
builder: ${{ steps.buildx.outputs.builder }} | ||
platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/386,linux/ppc64le,linux/s390x | ||
push: true | ||
tags: | | ||
localhost:5000/name/app:latest | ||
localhost:5000/name/app:1.0.0 | ||
- | ||
name: Dump context | ||
uses: crazy-max/ghaction-dump-context@v1 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
node_modules | ||
lib | ||
|
||
# Jetbrains | ||
/.idea | ||
/*.iml | ||
|
||
# Rest of the file pulled from https://github.com/github/gitignore/blob/master/Node.gitignore | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
lerna-debug.log* | ||
|
||
# Diagnostic reports (https://nodejs.org/api/report.html) | ||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
*.lcov | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# Bower dependency directory (https://bower.io/) | ||
bower_components | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (https://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directories | ||
jspm_packages/ | ||
|
||
# TypeScript v1 declaration files | ||
typings/ | ||
|
||
# TypeScript cache | ||
*.tsbuildinfo | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
|
||
# Yarn Integrity file | ||
.yarn-integrity | ||
|
||
# dotenv environment variables file | ||
.env | ||
.env.test | ||
|
||
# parcel-bundler cache (https://parceljs.org/) | ||
.cache | ||
|
||
# next.js build output | ||
.next | ||
|
||
# nuxt.js build output | ||
.nuxt | ||
|
||
# vuepress build output | ||
.vuepress/dist | ||
|
||
# Serverless directories | ||
.serverless/ | ||
|
||
# FuseBox cache | ||
.fusebox/ | ||
|
||
# DynamoDB Local files | ||
.dynamodb/ |
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,11 @@ | ||
{ | ||
"printWidth": 120, | ||
"tabWidth": 2, | ||
"useTabs": false, | ||
"semi": true, | ||
"singleQuote": true, | ||
"trailingComma": "none", | ||
"bracketSpacing": false, | ||
"arrowParens": "avoid", | ||
"parser": "typescript" | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.