Skip to content

Commit

Permalink
feat!: switch to dockerized github action (#182)
Browse files Browse the repository at this point in the history
  • Loading branch information
derberg authored Nov 22, 2021
1 parent 5c55a9c commit ba5b4c5
Show file tree
Hide file tree
Showing 28,023 changed files with 54 additions and 4,834,944 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
29 changes: 29 additions & 0 deletions .github/workflows/release-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release Docker Image
on:
release:
types:
- published

jobs:

release:
name: Docker build and push
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
ref: master
- name: Get version without v character
id: version
run: |
VERSION=${{github.event.release.tag_name}}
VERSION_WITHOUT_V=${VERSION:1}
echo "::set-output name=value::$(echo $VERSION_WITHOUT_V)"
- name: Release to Docker
run: |
echo ${{secrets.DOCKER_PASSWORD}} | docker login -u ${{secrets.DOCKER_USERNAME}} --password-stdin
npm run docker:build
docker tag asyncapi/github-action-for-generator:latest asyncapi/github-action-for-generator:${{ steps.version.outputs.value }}
docker push asyncapi/github-action-for-generator:${{ steps.version.outputs.value }}
docker push asyncapi/github-action-for-generator:latest
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
coverage
.DS_Store
output
node_modules/semantic-release
node_modules/@semantic-release
node_modules
dist
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM node:16 as builder

COPY ./ /app
WORKDIR /app

RUN npm install && npm run package

FROM node:16-alpine

# We need to copy entire node modules as some dependencies (@npmcli/run-script) cannot be packaged
# and need to be used by dist as external dependency
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/dist ./dist

ENTRYPOINT [ "node", "/dist/index.js" ]
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ In case all defaults are fine for you, just add such step:

```yaml
- name: Generating Markdown from my AsyncAPI document
uses: asyncapi/github-action-for-generator@v1
uses: docker://asyncapi/github-action-for-generator:2.0.0
```
### Using all possible inputs
Expand All @@ -45,7 +45,7 @@ In case you do not want to use defaults, you for example want to use different t
```yaml
- name: Generating HTML from my AsyncAPI document
uses: asyncapi/github-action-for-generator@v1
uses: docker://asyncapi/github-action-for-generator:2.0.0
with:
template: '@asyncapi/[email protected]' #In case of template from npm, because of @ it must be in quotes
filepath: docs/api/my-asyncapi.yml
Expand Down Expand Up @@ -80,7 +80,7 @@ jobs:

#In case you do not want to use defaults, you for example want to use different template
- name: Generating HTML from my AsyncAPI document
uses: asyncapi/github-action-for-generator@v1
uses: docker://asyncapi/github-action-for-generator:2.0.0
with:
template: '@asyncapi/[email protected]' #In case of template from npm, because of @ it must be in quotes
filepath: docs/api/my-asyncapi.yml
Expand Down
Binary file removed dist/fsevents.node
Binary file not shown.
Binary file removed dist/fsevents1.node
Binary file not shown.
268,260 changes: 0 additions & 268,260 deletions dist/index.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/index.js.map

This file was deleted.

1 change: 0 additions & 1 deletion dist/sourcemap-register.js

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/JSONStream

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/acorn

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/ag

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/arborist

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/asyncapi-generator

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/atob

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/browserslist

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/cdl

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/conventional-changelog-writer

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/conventional-commits-parser

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/cross-env

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/cross-env-shell

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/dt2js

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/escodegen

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/esgenerate

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/eslint

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/esparse

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/esvalidate

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/handlebars

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/husky-run

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/husky-upgrade

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/import-local-fixture

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/installed-package-contents

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/is-ci

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/is-docker

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/jest

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/jest-runtime

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/js-yaml

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/js2dt

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/jsesc

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/json5

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/levenshtein-edit-distance

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/loose-envify

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/markdown-it

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/marked

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/mime

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/mkdirp

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/ncc

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/ncp

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/node-gyp

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/nopt

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/npm

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/npm-packlist

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/npx

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/nunjucks-precompile

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/opencollective-postinstall

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/pacote

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/parser

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/rc

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/regjsparser

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/rimraf

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/rollup

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/sane

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/semantic-release

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/semver

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/sshpk-conv

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/sshpk-sign

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/sshpk-verify

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/ts-node

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/ts-node-script

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/ts-node-transpile-only

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/ts-script

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/tsc

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/tsserver

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/uglifyjs

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/uuid

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/watch

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/which

This file was deleted.

9 changes: 0 additions & 9 deletions node_modules/@actions/core/LICENSE.md

This file was deleted.

Loading

0 comments on commit ba5b4c5

Please sign in to comment.