From 33c4fcc2bb85655ae53db0786ad6a735533fd5a5 Mon Sep 17 00:00:00 2001 From: Josh Bielick Date: Mon, 9 Jan 2023 14:05:57 -0500 Subject: [PATCH] update image to 4.1, smaller image, gem upgrades --- Makefile | 2 +- README.md | 18 +++++++++--------- action.yml | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Makefile b/Makefile index 2d50cd2..0241cf5 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ name=adwerx/pronto-ruby image: - docker build -f Dockerfile . -t ${name}:${TAG} -t ${name}:latest + docker buildx build --platform linux/amd64,linux/arm64 -t ${name}:${TAG} -o type=registry . test: spec/fixtures/test.git docker run -v "${CURDIR}:/runner" --workdir /runner --entrypoint /runner/dev_entrypoint.sh --rm ${name}:latest rspec diff --git a/README.md b/README.md index b74c40a..7041f08 100644 --- a/README.md +++ b/README.md @@ -27,10 +27,10 @@ The docker image of this Action includes the following [Pronto Runners](https:// # Inputs -| name | description | default | -| --- | --- | --- | -| `runners` | Space-separated list of pronto runners to run. Must be the preinstalled runners from the list above. | `rubocop` | -| `target` | The git target pronto will diff against (`-c`) | `origin/master` | +| name | description | default | +| --------- | ---------------------------------------------------------------------------------------------------- | --------------- | +| `runners` | Space-separated list of pronto runners to run. Must be the preinstalled runners from the list above. | `rubocop` | +| `target` | The git target pronto will diff against (`-c`) | `origin/master` | # Secrets @@ -39,9 +39,9 @@ A GitHub token is available by default when using actions, but you must include Be sure to include the ENV variable in your job step: ```yaml - - uses: adwerx/pronto-ruby - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +- uses: adwerx/pronto-ruby + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} ``` That's it! @@ -67,7 +67,7 @@ jobs: steps: - uses: actions/checkout@v2 - run: git fetch origin master --depth=1 - - uses: adwerx/pronto-ruby@v4.0 + - uses: adwerx/pronto-ruby@main # use a tag version here env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} ``` @@ -94,7 +94,7 @@ name: Pronto - run: git fetch origin master --depth=1 - uses: actions/setup-node@v1 - run: yarn install --ignore-optional --ignore-scripts --frozen-lockfile --non-interactive - - uses: adwerx/pronto-ruby@v2.8 + - uses: adwerx/pronto-ruby@main # use a tag version here with: runners: eslint_npm # ... env: diff --git a/action.yml b/action.yml index b909125..4ebd57e 100644 --- a/action.yml +++ b/action.yml @@ -25,7 +25,7 @@ inputs: origin/master runs: using: docker - image: "docker://docker.io/adwerx/pronto-ruby:4.0" + image: "docker://docker.io/adwerx/pronto-ruby:4.1" args: - run - -r