Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: docker/setup-qemu-action
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.2.0
Choose a base ref
...
head repository: docker/setup-qemu-action
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v3.0.0
Choose a head ref

Commits on Aug 8, 2023

  1. chore: set increase as versioning strategy

    Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
    crazy-max committed Aug 8, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    crazy-max CrazyMax
    Copy the full SHA
    4cd25a3 View commit details
  2. Merge pull request #91 from crazy-max/dependabot-update

    chore: set increase as versioning strategy
    tonistiigi authored Aug 8, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    0029f28 View commit details
  3. chore: remove CODEOWNERS

    Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
    crazy-max committed Aug 8, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    crazy-max CrazyMax
    Copy the full SHA
    5dc2b81 View commit details
  4. Merge pull request #92 from crazy-max/rm-codeowners

    chore: remove CODEOWNERS
    crazy-max authored Aug 8, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    61d34a9 View commit details

Commits on Sep 5, 2023

  1. Bump actions/checkout from 3 to 4

    Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
    - [Release notes](https://github.com/actions/checkout/releases)
    - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
    - [Commits](actions/checkout@v3...v4)
    
    ---
    updated-dependencies:
    - dependency-name: actions/checkout
      dependency-type: direct:production
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Sep 5, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    21834aa View commit details
  2. ci: fix workflow

    Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
    crazy-max committed Sep 5, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    crazy-max CrazyMax
    Copy the full SHA
    d8893c1 View commit details
  3. Merge pull request #98 from crazy-max/fix-ci

    ci: fix workflow
    crazy-max authored Sep 5, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    6f1a0b4 View commit details
  4. Merge pull request #96 from docker/dependabot/github_actions/actions/…

    …checkout-4
    
    Bump actions/checkout from 3 to 4
    crazy-max authored Sep 5, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    dc8118f View commit details
  5. ci: missing concurrency checks

    Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
    crazy-max committed Sep 5, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    crazy-max CrazyMax
    Copy the full SHA
    a3a2153 View commit details
  6. Merge pull request #99 from crazy-max/ci-concurrency

    ci: missing concurrency checks
    crazy-max authored Sep 5, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    4e6079c View commit details

Commits on Sep 9, 2023

  1. chore: update to node 20

    Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
    crazy-max committed Sep 9, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    crazy-max CrazyMax
    Copy the full SHA
    09e9b55 View commit details
  2. chore: update dev dependencies

    Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
    crazy-max committed Sep 9, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    crazy-max CrazyMax
    Copy the full SHA
    229292f View commit details
  3. vendor: bump @docker/actions-toolkit from 0.3.0 to 0.12.0

    Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
    crazy-max committed Sep 9, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    crazy-max CrazyMax
    Copy the full SHA
    277dbe8 View commit details
  4. chore: fix author in package.json

    Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
    crazy-max committed Sep 9, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    crazy-max CrazyMax
    Copy the full SHA
    1f3d2e1 View commit details
  5. chore: update generated content

    Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
    crazy-max committed Sep 9, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    crazy-max CrazyMax
    Copy the full SHA
    34ae628 View commit details
  6. chore: node 20 as default runtime

    Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
    crazy-max committed Sep 9, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    crazy-max CrazyMax
    Copy the full SHA
    c29b312 View commit details

Commits on Sep 12, 2023

  1. Merge pull request #102 from crazy-max/update-node20

    chore: node 20 as default runtime
    crazy-max authored Sep 12, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    12dec5e View commit details
  2. Bump semver from 6.3.0 to 6.3.1

    Bumps [semver](https://github.com/npm/node-semver) from 6.3.0 to 6.3.1.
    - [Release notes](https://github.com/npm/node-semver/releases)
    - [Changelog](https://github.com/npm/node-semver/blob/v6.3.1/CHANGELOG.md)
    - [Commits](npm/node-semver@v6.3.0...v6.3.1)
    
    ---
    updated-dependencies:
    - dependency-name: semver
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Sep 12, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    ecc406a View commit details
  3. Merge pull request #89 from docker/dependabot/npm_and_yarn/semver-6.3.1

    Bump semver from 6.3.0 to 6.3.1
    crazy-max authored Sep 12, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    2e423eb View commit details
  4. build(deps): bump @actions/core from 1.10.0 to 1.10.1

    Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 1.10.0 to 1.10.1.
    - [Changelog](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)
    - [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core)
    
    ---
    updated-dependencies:
    - dependency-name: "@actions/core"
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Sep 12, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    f174935 View commit details
  5. chore: update generated content

    Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
    crazy-max committed Sep 12, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    crazy-max CrazyMax
    Copy the full SHA
    183f4af View commit details
  6. Merge pull request #103 from docker/dependabot/npm_and_yarn/actions/c…

    …ore-1.10.1
    
    build(deps): bump @actions/core from 1.10.0 to 1.10.1
    crazy-max authored Sep 12, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    6882732 View commit details
Showing with 1,152 additions and 622 deletions.
  1. +3 −0 .eslintignore
  2. +2 −1 .eslintrc.json
  3. +0 −1 .github/CODEOWNERS
  4. +1 −0 .github/dependabot.yml
  5. +7 −3 .github/workflows/ci.yml
  6. +5 −1 .github/workflows/test.yml
  7. +6 −2 .github/workflows/validate.yml
  8. +1 −1 action.yml
  9. +2 −2 dev.Dockerfile
  10. +1 −1 dist/index.js
  11. +1 −1 dist/index.js.map
  12. +22 −24 package.json
  13. +1,101 −585 yarn.lock
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/dist/**
/coverage/**
/node_modules/**
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"env": {
"node": true,
"es2021": true,
"es6": true,
"jest": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:jest/recommended",
"plugin:prettier/recommended"
1 change: 0 additions & 1 deletion .github/CODEOWNERS

This file was deleted.

1 change: 1 addition & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -11,6 +11,7 @@ updates:
directory: "/"
schedule:
interval: "daily"
versioning-strategy: "increase"
allow:
- dependency-type: "production"
labels:
10 changes: 7 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: ci

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
schedule:
- cron: '0 10 * * *'
@@ -26,7 +30,7 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
-
name: Set up QEMU
id: qemu
@@ -43,11 +47,11 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
-
name: Stop docker
run: |
sudo systemctl stop docker
sudo systemctl stop docker docker.socket
-
name: Set up QEMU
id: qemu
6 changes: 5 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: test

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
push:
branches:
@@ -13,7 +17,7 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
-
name: Test
uses: docker/bake-action@v3
8 changes: 6 additions & 2 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: validate

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
push:
branches:
@@ -15,7 +19,7 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
-
name: Targets matrix
id: targets
@@ -33,7 +37,7 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
-
name: Validate
uses: docker/bake-action@v3
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
@@ -21,5 +21,5 @@ outputs:
description: 'Available platforms (comma separated)'

runs:
using: 'node16'
using: 'node20'
main: 'dist/index.js'
4 changes: 2 additions & 2 deletions dev.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1

ARG NODE_VERSION=16
ARG NODE_VERSION=20

FROM node:${NODE_VERSION}-alpine AS base
RUN apk add --no-cache cpio findutils git
@@ -63,7 +63,7 @@ RUN --mount=type=bind,target=.,rw \
FROM deps AS test
RUN --mount=type=bind,target=.,rw \
--mount=type=cache,target=/src/node_modules \
yarn run test --coverageDirectory=/tmp/coverage
yarn run test --coverage --coverageDirectory=/tmp/coverage

FROM scratch AS test-coverage
COPY --from=test /tmp/coverage /
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

46 changes: 22 additions & 24 deletions package.json
Original file line number Diff line number Diff line change
@@ -4,9 +4,13 @@
"main": "lib/main.js",
"scripts": {
"build": "ncc build src/main.ts --source-map --minify --license licenses.txt",
"lint": "eslint src/**/*.ts __tests__/**/*.ts",
"format": "eslint --fix src/**/*.ts __tests__/**/*.ts",
"test": "jest --coverage",
"lint": "yarn run prettier && yarn run eslint",
"format": "yarn run prettier:fix && yarn run eslint:fix",
"eslint": "eslint --max-warnings=0 .",
"eslint:fix": "eslint --fix .",
"prettier": "prettier --check \"./**/*.ts\"",
"prettier:fix": "prettier --write \"./**/*.ts\"",
"test": "jest",
"all": "yarn run build && yarn run format && yarn test"
},
"repository": {
@@ -18,31 +22,25 @@
"docker",
"qemu"
],
"author": "Docker",
"contributors": [
{
"name": "CrazyMax",
"url": "https://crazymax.dev"
}
],
"author": "Docker Inc.",
"license": "Apache-2.0",
"dependencies": {
"@actions/core": "^1.10.0",
"@docker/actions-toolkit": "^0.3.0"
"@actions/core": "^1.10.1",
"@docker/actions-toolkit": "^0.12.0"
},
"devDependencies": {
"@types/node": "^16.18.21",
"@typescript-eslint/eslint-plugin": "^5.56.0",
"@typescript-eslint/parser": "^5.56.0",
"@vercel/ncc": "^0.36.1",
"eslint": "^8.36.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-jest": "^27.2.1",
"eslint-plugin-prettier": "^4.2.1",
"jest": "^29.5.0",
"prettier": "^2.8.7",
"ts-jest": "^29.0.5",
"@types/node": "^20.5.9",
"@typescript-eslint/eslint-plugin": "^6.6.0",
"@typescript-eslint/parser": "^6.6.0",
"@vercel/ncc": "^0.38.0",
"eslint": "^8.48.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-jest": "^27.2.3",
"eslint-plugin-prettier": "^5.0.0",
"jest": "^29.6.4",
"prettier": "^3.0.3",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
"typescript": "^4.9.5"
"typescript": "^5.2.2"
}
}
1,686 changes: 1,101 additions & 585 deletions yarn.lock

Large diffs are not rendered by default.