Compare commits

...
71 Commits
Author SHA1 Message Date
CrazyMax 507c2f2dc5 Merge pull request #257 from crazy-max/env-output
Provide outputs as env vars
2023-01-13 14:33:40 +01:00
CrazyMax 04861f5102 update generated content
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2023-01-13 11:46:25 +01:00
CrazyMax 6729545cde Provide outputs as env vars
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2023-01-13 11:46:25 +01:00
CrazyMax 05d22bf317 Merge pull request #256 from crazy-max/fix-readme
Fix README
2023-01-11 16:25:04 +01:00
CrazyMax 70b403b46b Fix README
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2023-01-11 16:17:34 +01:00
CrazyMax 9e6ae02878 Merge pull request #252 from docker/dependabot/npm_and_yarn/json5-2.2.3
Bump json5 from 2.2.0 to 2.2.3
2023-01-08 18:33:57 +01:00
dependabot[bot] 3d239e8b8a Bump json5 from 2.2.0 to 2.2.3
Bumps [json5](https://github.com/json5/json5) from 2.2.0 to 2.2.3.
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](https://github.com/json5/json5/compare/v2.2.0...v2.2.3)

---
updated-dependencies:
- dependency-name: json5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-06 09:54:33 +00:00
CrazyMax 7cb52e2750 Merge pull request #251 from chroju/set_timezone
Add tz attribute to handlebar date function
2023-01-06 10:54:03 +01:00
chroju 90a1d5cf21 Add tz attribute to handlebar date function
Signed-off-by: chroju <chroju@users.noreply.github.com>
2023-01-06 18:11:29 +09:00
CrazyMax c98ac5e987 Merge pull request #249 from crazy-max/fix-readme
readme: fix badges
2022-12-19 21:11:06 +01:00
CrazyMax 44d853bc0a readme: fix badges
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-12-19 21:07:37 +01:00
CrazyMax d1abf80723 Merge pull request #245 from docker/dependabot/npm_and_yarn/csv-parse-5.3.3
Bump csv-parse from 5.3.1 to 5.3.3
2022-12-19 21:05:43 +01:00
CrazyMax 3358a27538 update generated content
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-12-19 21:02:10 +01:00
CrazyMax 314ddf6d4a Merge pull request #242 from docker/dependabot/npm_and_yarn/minimatch-3.1.2
Bump minimatch from 3.0.4 to 3.1.2
2022-11-29 18:53:57 +01:00
dependabot[bot] b91e8f52b0 Bump csv-parse from 5.3.1 to 5.3.3
Bumps [csv-parse](https://github.com/adaltas/node-csv/tree/HEAD/packages/csv-parse) from 5.3.1 to 5.3.3.
- [Release notes](https://github.com/adaltas/node-csv/releases)
- [Changelog](https://github.com/adaltas/node-csv/blob/master/packages/csv-parse/CHANGELOG.md)
- [Commits](https://github.com/adaltas/node-csv/commits/csv-parse@5.3.3/packages/csv-parse)

---
updated-dependencies:
- dependency-name: csv-parse
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-28 19:04:37 +00:00
dependabot[bot] fbac5f9bca Bump minimatch from 3.0.4 to 3.1.2
Bumps [minimatch](https://github.com/isaacs/minimatch) from 3.0.4 to 3.1.2.
- [Release notes](https://github.com/isaacs/minimatch/releases)
- [Commits](https://github.com/isaacs/minimatch/compare/v3.0.4...v3.1.2)

---
updated-dependencies:
- dependency-name: minimatch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-10 03:52:53 +00:00
CrazyMax 57396166ad Merge pull request #237 from docker/dependabot/npm_and_yarn/csv-parse-5.3.1
Bump csv-parse from 5.3.0 to 5.3.1
2022-10-17 21:51:54 +02:00
CrazyMax 473bdc561c update generated content
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-10-17 21:50:02 +02:00
dependabot[bot] ebedea2c18 Bump csv-parse from 5.3.0 to 5.3.1
Bumps [csv-parse](https://github.com/adaltas/node-csv/tree/HEAD/packages/csv-parse) from 5.3.0 to 5.3.1.
- [Release notes](https://github.com/adaltas/node-csv/releases)
- [Changelog](https://github.com/adaltas/node-csv/blob/master/packages/csv-parse/CHANGELOG.md)
- [Commits](https://github.com/adaltas/node-csv/commits/csv-parse@5.3.1/packages/csv-parse)

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>

---
updated-dependencies:
- dependency-name: csv-parse
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-17 21:49:36 +02:00
Tõnis Tiigi d00b20e38f Merge pull request #239 from crazy-max/github-sha
revert changes to set associated head sha on pull request event
2022-10-17 09:09:59 -07:00
CrazyMax a99e71cdc7 revert changes to set associated head sha on pull request event
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-10-17 11:49:09 +02:00
CrazyMax 12cce9efe0 Merge pull request #236 from crazy-max/setOutput
Remove workaround for setOutput
2022-10-12 08:34:51 +02:00
CrazyMax f17e188860 Remove workaround for setOutput
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-10-12 07:07:13 +02:00
CrazyMax 210d783f42 Merge pull request #235 from crazy-max/update-docs
docs: update
2022-10-08 02:32:20 +02:00
CrazyMax 5f26473e44 docs: update links and layout
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-10-08 02:13:25 +02:00
CrazyMax 49e79e3532 docs: priority attribute
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-10-08 01:10:48 +02:00
CrazyMax 5ebec4fd21 docs: workflow_dispatch example
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-10-08 00:48:17 +02:00
CrazyMax 8ed470c7f1 Merge pull request #234 from crazy-max/fix-sha-pr
set associated head sha on pull request event
2022-10-08 00:35:58 +02:00
CrazyMax 61ddee1921 set associated head sha on pull request event
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-10-08 00:18:51 +02:00
CrazyMax 8671a4f8ec Merge pull request #233 from crazy-max/test-septags
do not trim whitespace for sep-tags and sep-labels inputs
2022-10-07 23:14:46 +02:00
CrazyMax 3862a1b70f do not trim whitespace for sep-tags and sep-labels inputs
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-10-07 23:10:32 +02:00
CrazyMax f7c31b1e79 Merge pull request #221 from docker/dependabot/npm_and_yarn/csv-parse-5.3.0
Bump csv-parse from 5.1.0 to 5.3.0
2022-10-07 21:31:34 +02:00
CrazyMax 55b0d953e7 Update generated content
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-10-07 21:11:07 +02:00
dependabot[bot] 4c6a2cafd0 Bump csv-parse from 5.1.0 to 5.3.0
Bumps [csv-parse](https://github.com/adaltas/node-csv/tree/HEAD/packages/csv-parse) from 5.1.0 to 5.3.0.
- [Release notes](https://github.com/adaltas/node-csv/releases)
- [Changelog](https://github.com/adaltas/node-csv/blob/master/packages/csv-parse/CHANGELOG.md)
- [Commits](https://github.com/adaltas/node-csv/commits/csv-parse@5.3.0/packages/csv-parse)

---
updated-dependencies:
- dependency-name: csv-parse
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-07 19:09:44 +00:00
CrazyMax 6c51f019f8 Merge pull request #220 from docker/dependabot/npm_and_yarn/moment-2.29.4
Bump moment from 2.29.3 to 2.29.4
2022-10-07 21:08:43 +02:00
CrazyMax 5c9aa83b20 Update generated content
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-10-07 21:01:38 +02:00
dependabot[bot] 30af4d7327 Bump moment from 2.29.3 to 2.29.4
Bumps [moment](https://github.com/moment/moment) from 2.29.3 to 2.29.4.
- [Release notes](https://github.com/moment/moment/releases)
- [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/moment/moment/compare/2.29.3...2.29.4)

---
updated-dependencies:
- dependency-name: moment
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-07 18:58:07 +00:00
CrazyMax 594a555a35 Merge pull request #232 from docker/dependabot/npm_and_yarn/actions/github-5.1.1
Bump @actions/github from 5.0.3 to 5.1.1
2022-10-07 20:56:21 +02:00
CrazyMax 7fa87ab51a Update generated content
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-10-07 20:54:56 +02:00
dependabot[bot] 02d1a10cce Bump @actions/github from 5.0.3 to 5.1.1
Bumps [@actions/github](https://github.com/actions/toolkit/tree/HEAD/packages/github) from 5.0.3 to 5.1.1.
- [Release notes](https://github.com/actions/toolkit/releases)
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/github/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/github)

---
updated-dependencies:
- dependency-name: "@actions/github"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-07 18:51:43 +00:00
CrazyMax 58061722cc Merge pull request #231 from docker/dependabot/npm_and_yarn/actions/core-1.10.0
Bump @actions/core from 1.9.1 to 1.10.0
2022-10-07 20:49:23 +02:00
CrazyMax 1c9aacf050 Update generated content
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-10-07 20:44:07 +02:00
dependabot[bot] 1f87faac28 Bump @actions/core from 1.9.1 to 1.10.0
Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 1.9.1 to 1.10.0.
- [Release notes](https://github.com/actions/toolkit/releases)
- [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-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-29 19:15:00 +00:00
CrazyMax 59bc9ddfd5 Merge pull request #226 from docker/dependabot/npm_and_yarn/actions/core-1.9.1
Bump @actions/core from 1.9.0 to 1.9.1
2022-08-24 13:16:11 +02:00
CrazyMax 286660a061 Update generated content
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-08-24 12:33:33 +02:00
dependabot[bot] 139c7584e2 Bump @actions/core from 1.9.0 to 1.9.1
Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 1.9.0 to 1.9.1.
- [Release notes](https://github.com/actions/toolkit/releases)
- [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>
2022-08-08 19:20:50 +00:00
CrazyMax ee266832e5 Merge pull request #216 from docker/dependabot/npm_and_yarn/actions/core-1.9.0
Bump @actions/core from 1.8.2 to 1.9.0
2022-08-03 12:12:48 +02:00
CrazyMax ae052be62f Update generated content
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-08-03 12:10:35 +02:00
dependabot[bot] 98045504c7 Bump @actions/core from 1.8.2 to 1.9.0
Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 1.8.2 to 1.9.0.
- [Release notes](https://github.com/actions/toolkit/releases)
- [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-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-15 19:11:29 +00:00
CrazyMax 97c170d70b Merge pull request #210 from docker/dependabot/npm_and_yarn/csv-parse-5.1.0
Bump csv-parse from 5.0.4 to 5.1.0
2022-06-07 11:58:36 +02:00
CrazyMax 44ecceaf69 Update generated content
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-06-07 11:52:29 +02:00
dependabot[bot] e4d14b2070 Bump csv-parse from 5.0.4 to 5.1.0
Bumps [csv-parse](https://github.com/adaltas/node-csv/tree/HEAD/packages/csv-parse) from 5.0.4 to 5.1.0.
- [Release notes](https://github.com/adaltas/node-csv/releases)
- [Changelog](https://github.com/adaltas/node-csv/blob/master/packages/csv-parse/CHANGELOG.md)
- [Commits](https://github.com/adaltas/node-csv/commits/csv-parse@5.1.0/packages/csv-parse)

---
updated-dependencies:
- dependency-name: csv-parse
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-07 09:50:34 +00:00
CrazyMax f66710ef6c Merge pull request #209 from docker/dependabot/npm_and_yarn/actions/core-1.8.2
Bump @actions/core from 1.6.0 to 1.8.2
2022-06-07 11:49:03 +02:00
CrazyMax d6cc766711 Update generated content
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-06-07 11:47:39 +02:00
dependabot[bot] 9c37b1c855 Bump @actions/core from 1.6.0 to 1.8.2
Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 1.6.0 to 1.8.2.
- [Release notes](https://github.com/actions/toolkit/releases)
- [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-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-07 09:43:33 +00:00
CrazyMax e518b0e7bb Merge pull request #208 from docker/dependabot/npm_and_yarn/actions/github-5.0.3
Bump @actions/github from 5.0.1 to 5.0.3
2022-06-07 11:41:16 +02:00
CrazyMax 7bf589e898 Update generated content
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-06-07 11:37:11 +02:00
CrazyMax bc6cb60a8a Merge pull request #213 from crazy-max/bump-actions
Bump actions to latest major
2022-06-07 11:22:34 +02:00
CrazyMax 4db6eea5ea Bump actions to latest major
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-05-26 23:43:36 +02:00
dependabot[bot] b5ee2f25f6 Bump @actions/github from 5.0.1 to 5.0.3
Bumps [@actions/github](https://github.com/actions/toolkit/tree/HEAD/packages/github) from 5.0.1 to 5.0.3.
- [Release notes](https://github.com/actions/toolkit/releases)
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/github/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/github)

---
updated-dependencies:
- dependency-name: "@actions/github"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-13 19:12:51 +00:00
CrazyMax 8d56fe93cf Merge pull request #204 from crazy-max/update-refs
Bump all Docker actions to latest major
2022-05-05 19:46:24 +02:00
CrazyMax 59267481d9 Bump all Docker actions to latest major
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-05-05 19:42:03 +02:00
CrazyMax 69f6fc9d46 Merge pull request #203 from crazy-max/san-fix
Sanitize tag earlier
2022-05-05 13:57:05 +02:00
CrazyMax 2f5b5ae8bf Sanitize tag earlier
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-05-05 13:54:54 +02:00
CrazyMax f206c36955 Merge pull request #202 from crazy-max/v4-prep
readme: set metadata-action to v4
2022-05-05 11:43:25 +02:00
CrazyMax a20adfa74e readme: set metadata-action to v4
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-05-05 11:41:40 +02:00
CrazyMax 26b9439ce3 Merge pull request #201 from crazy-max/fix-sanitization
Do not sanitize before pattern matching
2022-05-05 11:33:19 +02:00
CrazyMax 467883f452 Merge pull request #176 from crazy-max/node-16
Node 16 as default runtime
2022-05-05 11:32:46 +02:00
CrazyMax 5edf56f2c4 Node 16 as default runtime
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-05-04 15:14:01 +02:00
CrazyMax 678218f2be Note about image name and tag sanitization
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-05-04 15:02:47 +02:00
CrazyMax e44c1fbe6e Do not sanitize before pattern matching
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-05-04 15:02:20 +02:00
23 changed files with 953 additions and 270 deletions

No files matched your search

+73 -6
View File
@@ -37,6 +37,9 @@ jobs:
type=ref,event=tag
type=ref,event=pr
type=sha
-
name: Print envs
run: env|sort
tag-schedule:
runs-on: ubuntu-latest
@@ -224,6 +227,14 @@ jobs:
echo "version=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }}"
echo "revision=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.revision'] }}"
echo "created=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.created'] }}"
-
name: JSON build arg
uses: docker/build-push-action@v3
with:
context: ./test
file: ./test/json.Dockerfile
build-args: |
BUILDINFO=${{ steps.meta.outputs.json }}
docker-push:
runs-on: ubuntu-latest
@@ -254,15 +265,15 @@ jobs:
type=sha
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2
with:
driver-opts: network=host
-
name: Build and push to local registry
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
context: ./test
file: ./test/Dockerfile
@@ -309,16 +320,72 @@ jobs:
type=sha
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2
-
name: Build
uses: docker/bake-action@v1
uses: docker/bake-action@v2
with:
files: |
./test/docker-bake.hcl
${{ steps.docker_meta.outputs.bake-file }}
targets: |
release
sep-tags:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
sep:
- " "
- ","
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Docker meta
id: meta
uses: ./
with:
images: |
${{ env.DOCKER_IMAGE }}
ghcr.io/name/app
sep-tags: ${{ matrix.sep }}
-
name: Tags
uses: actions/github-script@v6
with:
script: |
console.log(`${{ steps.meta.outputs.tags }}`);
output-env:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Docker meta
id: meta
uses: ./
with:
images: |
${{ env.DOCKER_IMAGE }}
ghcr.io/name/app
labels: |
maintainer=CrazyMax
-
name: Build
uses: docker/build-push-action@v3
with:
context: ./test
file: ./test/output.Dockerfile
build-args: |
DOCKER_METADATA_OUTPUT_VERSION
DOCKER_METADATA_OUTPUT_TAGS
DOCKER_METADATA_OUTPUT_LABELS
DOCKER_METADATA_OUTPUT_JSON
+2 -2
View File
@@ -19,12 +19,12 @@ jobs:
uses: actions/checkout@v3
-
name: Validate
uses: docker/bake-action@v1
uses: docker/bake-action@v2
with:
targets: validate
-
name: Test
uses: docker/bake-action@v1
uses: docker/bake-action@v2
with:
targets: test
-
+189 -115
View File
@@ -1,12 +1,14 @@
[![GitHub release](https://img.shields.io/github/release/docker/metadata-action.svg?style=flat-square)](https://github.com/docker/metadata-action/releases/latest)
[![GitHub marketplace](https://img.shields.io/badge/marketplace-docker--metadata--action-blue?logo=github&style=flat-square)](https://github.com/marketplace/actions/docker-metadata-action)
[![Test workflow](https://img.shields.io/github/workflow/status/docker/metadata-action/test?label=test&logo=github&style=flat-square)](https://github.com/docker/metadata-action/actions?workflow=test)
[![CI workflow](https://img.shields.io/github/actions/workflow/status/docker/metadata-action/ci.yml?branch=master&label=ci&logo=github&style=flat-square)](https://github.com/docker/metadata-action/actions?workflow=ci)
[![Test workflow](https://img.shields.io/github/actions/workflow/status/docker/metadata-action/test.yml?branch=master&label=test&logo=github&style=flat-square)](https://github.com/docker/metadata-action/actions?workflow=test)
[![Codecov](https://img.shields.io/codecov/c/github/docker/metadata-action?logo=codecov&style=flat-square)](https://codecov.io/gh/docker/metadata-action)
## About
GitHub Action to extract metadata from Git reference and GitHub events.
This action is particularly useful if used with [Docker Build Push](https://github.com/docker/build-push-action) action to tag and label Docker images.
GitHub Action to extract metadata from Git reference and GitHub events. This action
is particularly useful if used with [Docker Build Push](https://github.com/docker/build-push-action)
action to tag and label Docker images.
![Screenshot](.github/metadata-action.png)
@@ -19,6 +21,7 @@ ___
* [Customizing](#customizing)
* [inputs](#inputs)
* [outputs](#outputs)
* [environment variables](#environment-variables)
* [`images` input](#images-input)
* [`flavor` input](#flavor-input)
* [`tags` input](#tags-input)
@@ -31,18 +34,20 @@ ___
* [`type=raw`](#typeraw)
* [`type=sha`](#typesha)
* [Notes](#notes)
* [Image name and tag sanitization](#image-name-and-tag-sanitization)
* [Latest tag](#latest-tag)
* [`priority` attribute](#priority-attribute)
* [Global expressions](#global-expressions)
* [`{{branch}}`](#branch)
* [`{{tag}}`](#tag)
* [`{{sha}}`](#sha)
* [`{{base_ref}}`](#base_ref)
* [`{{is_default_branch}}`](#is_default_branch)
* [`{{date '<format>'}}`](#date-format)
* [`{{date '<format>' tz='<timezone>'}}`](#date-format-tztimezone)
* [Major version zero](#major-version-zero)
* [JSON output object](#json-output-object)
* [Overwrite labels](#overwrite-labels)
* [Keep up-to-date with GitHub Dependabot](#keep-up-to-date-with-github-dependabot)
* [Contributing](#contributing)
## Usage
@@ -52,6 +57,7 @@ ___
name: ci
on:
workflow_dispatch:
push:
branches:
- 'master'
@@ -67,23 +73,23 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
-
name: Docker meta
id: meta
uses: docker/metadata-action@v3
uses: docker/metadata-action@v4
with:
images: name/app
-
name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
@@ -91,13 +97,14 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
```
| Event | Ref | Docker Tags |
|-----------------|-------------------------------|-------------------------------------|
| `pull_request` | `refs/pull/2/merge` | `pr-2` |
| `push` | `refs/heads/master` | `master` |
| `push` | `refs/heads/releases/v1` | `releases-v1` |
| `push tag` | `refs/tags/v1.2.3` | `v1.2.3`, `latest` |
| `push tag` | `refs/tags/v2.0.8-beta.67` | `v2.0.8-beta.67`, `latest` |
| Event | Ref | Docker Tags |
|---------------------|-------------------------------|----------------------------|
| `pull_request` | `refs/pull/2/merge` | `pr-2` |
| `push` | `refs/heads/master` | `master` |
| `push` | `refs/heads/releases/v1` | `releases-v1` |
| `push tag` | `refs/tags/v1.2.3` | `v1.2.3`, `latest` |
| `push tag` | `refs/tags/v2.0.8-beta.67` | `v2.0.8-beta.67`, `latest` |
| `workflow_dispatch` | `refs/heads/master` | `master` |
### Semver
@@ -120,11 +127,11 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
-
name: Docker meta
id: meta
uses: docker/metadata-action@v3
uses: docker/metadata-action@v4
with:
images: |
name/app
@@ -136,13 +143,13 @@ jobs:
-
name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
@@ -161,8 +168,8 @@ jobs:
### Bake definition
This action also handles a bake definition file that can be used with the
[Docker Bake action](https://github.com/docker/bake-action). You just have to declare an empty target named
`docker-metadata-action` and inherit from it.
[Docker Bake action](https://github.com/docker/bake-action). You just have to
declare an empty target named `docker-metadata-action` and inherit from it.
```hcl
// docker-bake.hcl
@@ -198,11 +205,11 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
-
name: Docker meta
id: meta
uses: docker/metadata-action@v3
uses: docker/metadata-action@v4
with:
images: |
name/app
@@ -214,7 +221,7 @@ jobs:
type=sha
-
name: Build
uses: docker/bake-action@v1
uses: docker/bake-action@v2
with:
files: |
./docker-bake.hcl
@@ -222,7 +229,8 @@ jobs:
targets: build
```
Content of `${{ steps.meta.outputs.bake-file }}` file will look like this with `refs/tags/v1.2.3` ref:
Content of `${{ steps.meta.outputs.bake-file }}` file will look like this with
`refs/tags/v1.2.3` ref:
```json
{
@@ -281,13 +289,36 @@ Following inputs can be used as `step.with` keys
Following outputs are available
| Name | Type | Description |
|---------------|---------|-------------------------------------------------------------------------------|
| `version` | String | Docker image version |
| `tags` | String | Docker tags |
| `labels` | String | Docker labels |
| `json` | String | JSON output of tags and labels |
| `bake-file` | File | [Bake definition file](https://github.com/docker/buildx#file-definition) path |
| Name | Type | Description |
|---------------|---------|--------------------------------------------------------------------------------------------|
| `version` | String | Docker image version |
| `tags` | String | Docker tags |
| `labels` | String | Docker labels |
| `json` | String | JSON output of tags and labels |
| `bake-file` | File | [Bake file definition](https://docs.docker.com/build/customize/bake/file-definition/) path |
Alternatively, each output is also exported as an environment variable:
* `DOCKER_METADATA_OUTPUT_VERSION`
* `DOCKER_METADATA_OUTPUT_TAGS`
* `DOCKER_METADATA_OUTPUT_LABELS`
* `DOCKER_METADATA_OUTPUT_JSON`
* `DOCKER_METADATA_OUTPUT_BAKE_FILE`
So it can be used with our [Docker Build Push action](https://github.com/docker/build-push-action/):
```yaml
- uses: docker/build-push-action@v3
with:
build-args: |
DOCKER_METADATA_OUTPUT_JSON
```
### environment variables
| Name | Type | Description |
|-------------------------------|------|------------------------------------------------------------------------------------------------------------|
| `DOCKER_METADATA_PR_HEAD_SHA` | Bool | If `true`, set associated head SHA instead of commit SHA that triggered the workflow on pull request event |
## `images` input
@@ -324,13 +355,16 @@ flavor: |
```
* `latest=<auto|true|false>`: Handle [latest tag](#latest-tag) (default `auto`)
* `prefix=<string>,onlatest=<true|false>`: A global prefix for each generated tag and optionally for `latest`
* `suffix=<string>,onlatest=<true|false>`: A global suffix for each generated tag and optionally for `latest`
* `prefix=<string>,onlatest=<true|false>`: A global prefix for each generated
tag and optionally for `latest`
* `suffix=<string>,onlatest=<true|false>`: A global suffix for each generated
tag and optionally for `latest`
## `tags` input
`tags` is the core input of this action as everything related to it will reflect the output metadata. This one is in
the form of a key-value pair list in CSV format to remove limitations intrinsically linked to GitHub Actions
`tags` is the core input of this action as everything related to it will
reflect the output metadata. This one is in the form of a key-value pair list
in CSV format to remove limitations intrinsically linked to GitHub Actions
(only string format is handled in the input fields). Here is an example:
```yaml
@@ -358,7 +392,7 @@ Each entry is defined by a `type`, which are:
And global attributes:
* `enable=<true|false>` enable this entry (default `true`)
* `priority=<number>` priority to manage the order of tags
* `priority=<number>` set tag [priority](#priority-attribute) order
* `prefix=<string>` add prefix
* `suffix=<string>` add suffix
@@ -382,18 +416,23 @@ tags: |
type=schedule,pattern=nightly
# handlebars
type=schedule,pattern={{date 'YYYYMMDD'}}
# handlebars with timezone
type=schedule,pattern={{date 'YYYYMMDD-hhmmss' tz='Asia/Tokyo'}}
```
Will be used on [schedule event](https://docs.github.com/en/actions/reference/events-that-trigger-workflows#schedule).
Will be used on [schedule event](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule).
`pattern` is a specially crafted attribute to support [Handlebars' template](https://handlebarsjs.com/guide/) with
the following expressions:
* `date 'format'` ; render date by its [moment format](https://momentjs.com/docs/#/displaying/format/)
`pattern` is a specially crafted attribute to support [Handlebars' template](https://handlebarsjs.com/guide/)
with the following expressions:
| Pattern | Output |
|--------------------------|----------------------|
| `nightly` | `nightly` |
| `{{date 'YYYYMMDD'}}` | `20210326` |
* `date 'format' tz='Timezone'` ; render date by its [moment format](https://momentjs.com/docs/#/displaying/format/).
Default `tz` is UTC.
| Pattern | Output |
|----------------------------------------------|-------------------|
| `nightly` | `nightly` |
| `{{date 'YYYYMMDD'}}` | `20200110` |
| `{{date 'YYYYMMDD-HHmmss' tz='Asia/Tokyo'}}` | `20200110-093000` |
Extended attributes and default values:
@@ -412,11 +451,13 @@ tags: |
type=semver,pattern={{version}},value=v1.0.0
```
Will be used on a [push tag event](https://docs.github.com/en/actions/reference/events-that-trigger-workflows#push)
and requires a valid [semver](https://semver.org/) Git tag, but you can also use a custom value through `value`
attribute.
Will be used on a [push tag event](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#push)
and requires a valid [semver](https://semver.org/) Git tag, but you can also
use a custom value through `value` attribute.
`pattern` attribute supports [Handlebars template](https://handlebarsjs.com/guide/)
with the following expressions:
`pattern` attribute supports [Handlebars template](https://handlebarsjs.com/guide/) with the following expressions:
* `raw` ; the actual tag
* `version` ; shorthand for `{{major}}.{{minor}}.{{patch}}` (can include pre-release)
* `major` ; major version identifier
@@ -435,9 +476,10 @@ attribute.
| `v2.0.8-beta.67` | `{{version}}` | `2.0.8-beta.67` |
| `v2.0.8-beta.67` | `{{major}}.{{minor}}` | `2.0.8-beta.67`* |
> *Pre-release (rc, beta, alpha) will only extend `{{version}}` (or `{{raw}}` if specified) as tag
> because they are updated frequently, and contain many breaking changes that are (by the author's design)
> not yet fit for public consumption.
> *Pre-release (rc, beta, alpha) will only extend `{{version}}` (or `{{raw}}`
> if specified) as tag because they are updated frequently, and contain many
> breaking changes that are (by the author's design) not yet fit for public
> consumption.
Extended attributes and default values:
@@ -456,11 +498,13 @@ tags: |
type=pep440,pattern={{version}},value=1.0.0
```
Will be used on a [push tag event](https://docs.github.com/en/actions/reference/events-that-trigger-workflows#push)
and requires a Git tag that conforms to [PEP 440](https://www.python.org/dev/peps/pep-0440/), but you can also use a
custom value through `value` attribute.
Will be used on a [push tag event](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#push)
and requires a Git tag that conforms to [PEP 440](https://www.python.org/dev/peps/pep-0440/),
but you can also use a custom value through `value` attribute.
`pattern` attribute supports [Handlebars template](https://handlebarsjs.com/guide/)
with the following expressions:
`pattern` attribute supports [Handlebars template](https://handlebarsjs.com/guide/) with the following expressions:
* `raw` ; the actual tag
* `version` ; cleaned version
* `major` ; major version identifier
@@ -481,9 +525,10 @@ custom value through `value` attribute.
| `1.2.3beta2` | `{{major}}.{{minor}}` | `1.2.3b2`* |
| `1.0dev4` | `{{major}}.{{minor}}` | `1.0.dev4`* |
> *dev/pre/post release will only extend `{{version}}` (or `{{raw}}` if specified) as tag
> because they are updated frequently, and contain many breaking changes that are (by the author's design)
> not yet fit for public consumption.
> *dev/pre/post release will only extend `{{version}}` (or `{{raw}}` if
> specified) as tag because they are updated frequently, and contain many
> breaking changes that are (by the author's design) not yet fit for public
> consumption.
Extended attributes and default values:
@@ -504,17 +549,17 @@ tags: |
type=match,pattern=v(.*),group=1,value=v1.0.0
```
Can create a regular expression for matching Git tag with a pattern and capturing group. Will be used on a
[push tag event](https://docs.github.com/en/actions/reference/events-that-trigger-workflows#push) but, you can also use
a custom value through `value` attribute.
Can create a regular expression for matching Git tag with a pattern and
capturing group. Will be used on a [push tag event](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#push)
but, you can also use a custom value through `value` attribute.
| Git tag | Pattern | Group | Output |
|-------------------------|-------------------------------|---------|------------------------|
| `v1.2.3` | `\d.\d.\d` | `0` | `1.2.3` |
| `v2.0.8-beta.67` | `v(.*)` | `1` | `2.0.8-beta.67` |
| `v2.0.8-beta.67` | `v(\d.\d)` | `1` | `2.0` |
| `20200110-RC2` | `\d+` | `0` | `20200110` |
| `p1/v1.2.3` | `p1-v(\d.\d.\d)` | `1` | `1.2.3` |
| Git tag | Pattern | Group | Output |
|-------------------------|------------------|---------|------------------------|
| `v1.2.3` | `\d.\d.\d` | `0` | `1.2.3` |
| `v2.0.8-beta.67` | `v(.*)` | `1` | `2.0.8-beta.67` |
| `v2.0.8-beta.67` | `v(\d.\d)` | `1` | `2.0` |
| `20200110-RC2` | `\d+` | `0` | `20200110` |
| `p1/v1.2.3` | `p1/v(\d.\d.\d)` | `1` | `1.2.3` |
Extended attributes and default values:
@@ -533,9 +578,9 @@ tags: |
type=edge,branch=main
```
An `edge` tag reflects the last commit of the active branch on your Git repository. I usually prefer to use `edge`
as a Docker tag for a better distinction or common pattern. This is also used by official images
like [Alpine](https://hub.docker.com/_/alpine).
An `edge` tag reflects the last commit of the active branch on your Git
repository. I usually prefer to use `edge` as a Docker tag for a better
distinction or common pattern. This is also used by official images like [Alpine](https://hub.docker.com/_/alpine).
Extended attributes and default values:
@@ -557,17 +602,19 @@ tags: |
```
This type handles Git ref (or reference) for the following events:
* `branch` ; eg. `refs/heads/master`
* `tag` ; eg. `refs/tags/v1.0.0`
* `pr` ; eg. `refs/pull/318/merge`
| Event | Ref | Output |
|-----------------|-------------------------------|-------------------------------|
| `pull_request` | `refs/pull/2/merge` | `pr-2` |
| `push` | `refs/heads/master` | `master` |
| `push` | `refs/heads/my/branch` | `my-branch` |
| `push tag` | `refs/tags/v1.2.3` | `v1.2.3` |
| `push tag` | `refs/tags/v2.0.8-beta.67` | `v2.0.8-beta.67` |
| Event | Ref | Output |
|---------------------|-------------------------------|------------------|
| `pull_request` | `refs/pull/2/merge` | `pr-2` |
| `push` | `refs/heads/master` | `master` |
| `push` | `refs/heads/my/branch` | `my-branch` |
| `push tag` | `refs/tags/v1.2.3` | `v1.2.3` |
| `push tag` | `refs/tags/v2.0.8-beta.67` | `v2.0.8-beta.67` |
| `workflow_dispatch` | `refs/heads/master` | `master` |
Extended attributes and default values:
@@ -625,9 +672,27 @@ tags: |
## Notes
### Image name and tag sanitization
In order to comply with [the specification](https://docs.docker.com/engine/reference/commandline/tag/#description),
the image name components may contain lowercase letters, digits and separators.
A separator is defined as a period, one or two underscores, or one or more
dashes. A name component may not start or end with a separator.
A tag name must be a valid ASCII chars sequences and may contain lowercase and
uppercase letters, digits, underscores, periods and dashes. A tag name may not
start with a period or a dash and may contain a maximum of 128 characters.
To ease the integration in your workflow, this action will automatically:
* Lowercase the image name
* Replace invalid chars sequences with `-` for tags
### Latest tag
`latest` tag is handled through the [`flavor` input](#flavor-input). It will be generated by default (`auto` mode) for:
`latest` tag is handled through the [`flavor` input](#flavor-input). It will be
generated by default (`auto` mode) for:
* [`type=ref,event=tag`](#typeref)
* [`type=semver,pattern=...`](#typesemver)
* [`type=match,pattern=...`](#typematch)
@@ -650,6 +715,24 @@ tags: |
type=raw,value=latest,enable={{is_default_branch}}
```
### `priority` attribute
`priority=<int>` attribute is used to sort tags in the final list. The higher
the value, the higher the priority. The first tag in the list (higher priority)
will be used as the image version for generated OCI label and [`version` output](#outputs).
Each tags `type` attribute has a default priority:
| Attribute | Default priority |
|------------|------------------|
| `schedule` | `1000` |
| `semver` | `900` |
| `pep440` | `900` |
| `match` | `800` |
| `edge` | `700` |
| `ref` | `600` |
| `raw` | `200` |
| `sha` | `100` |
### Global expressions
The following [Handlebars' template](https://handlebarsjs.com/guide/) expressions
@@ -668,12 +751,12 @@ tags: |
Returns the branch name that triggered the workflow run. Will be empty if not
a branch reference:
| Event | Ref | Output |
|-----------------|-------------------------------|---------------------|
| `pull_request` | `refs/pull/2/merge` | |
| `push` | `refs/heads/master` | `master` |
| `push` | `refs/heads/my/branch` | `my-branch` |
| `push tag` | `refs/tags/v1.2.3` | |
| Event | Ref | Output |
|----------------|------------------------|-------------|
| `pull_request` | `refs/pull/2/merge` | |
| `push` | `refs/heads/master` | `master` |
| `push` | `refs/heads/my/branch` | `my-branch` |
| `push tag` | `refs/tags/v1.2.3` | |
#### `{{tag}}`
@@ -714,22 +797,24 @@ workflow run. Will be empty for a branch reference:
Returns `true` if the branch that triggered the workflow run is the default
one, otherwise `false`.
#### `{{date '<format>'}}`
#### `{{date '<format>' tz='<timezone>'}}`
Returns the current date rendered by its [moment format](https://momentjs.com/docs/#/displaying/format/).
Default `tz` is UTC.
| Expression | Output example |
|--------------------------------------------|-----------------------------------------|
| `{{date 'YYYYMMDD'}}` | `20200110` |
| `{{date 'dddd, MMMM Do YYYY, h:mm:ss a'}}` | `Friday, January 10th 2020, 3:25:50 pm` |
| Expression | Output example |
|----------------------------------------------|-----------------------------------------|
| `{{date 'YYYYMMDD'}}` | `20200110` |
| `{{date 'dddd, MMMM Do YYYY, h:mm:ss a'}}` | `Friday, January 10th 2020, 3:25:50 pm` |
| `{{date 'YYYYMMDD-HHmmss' tz='Asia/Tokyo'}}` | `20200110-093000` |
### Major version zero
Major version zero (`0.y.z`) is for initial development and **may** change at any time. This means the public API
[**should not** be considered stable](https://semver.org/#spec-item-4).
Major version zero (`0.y.z`) is for initial development and **may** change at
any time. This means the public API [**should not** be considered stable](https://semver.org/#spec-item-4).
In this case, Docker tag `0` **should not** be generated if you're using [`type=semver`](#typesemver) with `{{major}}`
pattern. You can manage this behavior like this:
In this case, Docker tag `0` **should not** be generated if you're using [`type=semver`](#typesemver)
with `{{major}}` pattern. You can manage this behavior like this:
```yaml
# refs/tags/v0.1.2
@@ -744,19 +829,19 @@ tags: |
### JSON output object
The `json` output is a JSON object composed of the generated tags and labels so that you can reuse them further in your
workflow using the [`fromJSON` function](https://docs.github.com/en/actions/learn-github-actions/expressions#fromjson):
The `json` output is a JSON object composed of the generated tags and labels so
that you can reuse them further in your workflow using the [`fromJSON` function](https://docs.github.com/en/actions/learn-github-actions/expressions#fromjson):
```yaml
-
name: Docker meta
uses: docker/metadata-action@v3
uses: docker/metadata-action@v4
id: meta
with:
images: name/app
-
name: Build and push
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
@@ -775,7 +860,7 @@ labels generated are not suitable, you can overwrite them like this:
-
name: Docker meta
id: meta
uses: docker/metadata-action@v3
uses: docker/metadata-action@v4
with:
images: name/app
labels: |
@@ -785,18 +870,7 @@ labels generated are not suitable, you can overwrite them like this:
org.opencontainers.image.vendor=MyCompany
```
## Keep up-to-date with GitHub Dependabot
## Contributing
Since [Dependabot](https://docs.github.com/en/github/administering-a-repository/keeping-your-actions-up-to-date-with-github-dependabot)
has [native GitHub Actions support](https://docs.github.com/en/github/administering-a-repository/configuration-options-for-dependency-updates#package-ecosystem),
to enable it on your GitHub repo all you need to do is add the `.github/dependabot.yml` file:
```yaml
version: 2
updates:
# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
```
Want to contribute? Awesome! You can find information about contributing to
this project in the [CONTRIBUTING.md](/.github/CONTRIBUTING.md)
+16 -15
View File
@@ -2,7 +2,8 @@
## v2 to v3
* Repository has been moved to docker org. Replace `crazy-max/ghaction-docker-meta@v2` with `docker/metadata-action@v3`
* Repository has been moved to docker org. Replace `crazy-max/ghaction-docker-meta@v2`
with `docker/metadata-action@v4`
* The default bake target has been changed: `ghaction-docker-meta` > `docker-metadata-action`
## v1 to v2
@@ -132,7 +133,7 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
-
name: Docker meta
id: meta
@@ -142,13 +143,13 @@ jobs:
-
name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
@@ -176,23 +177,23 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
-
name: Docker meta
id: meta
uses: docker/metadata-action@v3
uses: docker/metadata-action@v4
with:
images: name/app
-
name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
@@ -222,7 +223,7 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
-
name: Docker meta
id: meta
@@ -235,13 +236,13 @@ jobs:
-
name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
@@ -269,11 +270,11 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
-
name: Docker meta
id: meta
uses: docker/metadata-action@v3
uses: docker/metadata-action@v4
with:
images: name/app
tags: |
@@ -284,13 +285,13 @@ jobs:
-
name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
+1 -34
View File
@@ -1,6 +1,5 @@
import {beforeEach, describe, expect, it, jest} from '@jest/globals';
import {describe, expect, it, jest} from '@jest/globals';
import * as fs from 'fs';
import * as os from 'os';
import * as path from 'path';
import * as context from '../src/context';
@@ -166,30 +165,6 @@ describe('asyncForEach', () => {
});
});
describe('setOutput', () => {
beforeEach(() => {
process.stdout.write = jest.fn() as typeof process.stdout.write;
});
// eslint-disable-next-line jest/expect-expect
it('setOutput produces the correct command', () => {
context.setOutput('some output', 'some value');
assertWriteCalls([`::set-output name=some output::some value${os.EOL}`]);
});
// eslint-disable-next-line jest/expect-expect
it('setOutput handles bools', () => {
context.setOutput('some output', false);
assertWriteCalls([`::set-output name=some output::false${os.EOL}`]);
});
// eslint-disable-next-line jest/expect-expect
it('setOutput handles numbers', () => {
context.setOutput('some output', 1.01);
assertWriteCalls([`::set-output name=some output::1.01${os.EOL}`]);
});
});
// See: https://github.com/actions/toolkit/blob/master/packages/core/src/core.ts#L67
function getInputName(name: string): string {
return `INPUT_${name.replace(/ /g, '_').toUpperCase()}`;
@@ -198,11 +173,3 @@ function getInputName(name: string): string {
function setInput(name: string, value: string): void {
process.env[getInputName(name)] = value;
}
// Assert that process.stdout.write calls called only with the given arguments.
function assertWriteCalls(calls: string[]): void {
expect(process.stdout.write).toHaveBeenCalledTimes(calls.length);
for (let i = 0; i < calls.length; i++) {
expect(process.stdout.write).toHaveBeenNthCalledWith(i + 1, calls[i]);
}
}
+2 -2
View File
@@ -53,7 +53,7 @@ describe('transform', () => {
[
`name=name/bar`,
`name/foo,enable=false`,
`name=ghcr.io/name/foo,enable=true`
`name=ghcr.io/UserName/Foo,enable=true`
],
[
{
@@ -65,7 +65,7 @@ describe('transform', () => {
enable: false,
},
{
name: `ghcr.io/name/foo`,
name: `ghcr.io/UserName/Foo`,
enable: true,
},
] as Image[],
+458 -8
View File
@@ -2,7 +2,7 @@ import {beforeEach, describe, expect, jest, test} from '@jest/globals';
import * as fs from 'fs';
import * as path from 'path';
import * as dotenv from 'dotenv';
import * as moment from 'moment';
import moment from 'moment-timezone';
import {getInputs, Inputs} from '../src/context';
import * as github from '../src/github';
import {Meta, Version} from '../src/meta';
@@ -21,8 +21,8 @@ jest.spyOn(global.Date.prototype, 'toISOString').mockImplementation(() => {
return '2020-01-10T00:30:00.000Z';
});
jest.mock('moment', () => {
return () => (jest.requireActual('moment') as typeof import('moment'))('2020-01-10T00:30:00.000Z');
jest.mock('moment-timezone', () => {
return () => (jest.requireActual('moment-timezone') as typeof import('moment-timezone'))('2020-01-10T00:30:00.000Z');
});
beforeEach(() => {
@@ -65,6 +65,7 @@ const tagsLabelsTest = async (name: string, envFile: string, inputs: Inputs, exV
describe('null', () => {
// prettier-ignore
// eslint-disable-next-line jest/expect-expect
test.each([
[
'null01',
@@ -121,6 +122,7 @@ describe('null', () => {
describe('push', () => {
// prettier-ignore
// eslint-disable-next-line jest/expect-expect
test.each([
[
'push01',
@@ -597,6 +599,7 @@ describe('push', () => {
tags: [
`type=raw,value=mytag-{{branch}}`,
`type=raw,value=mytag-{{date 'YYYYMMDD'}}`,
`type=raw,value=mytag-{{date 'YYYYMMDD-HHmmss' tz='Asia/Tokyo'}}`,
`type=raw,value=mytag-tag-{{tag}}`,
`type=raw,value=mytag-baseref-{{base_ref}}`,
`type=raw,value=mytag-defbranch,enable={{is_default_branch}}`
@@ -606,6 +609,7 @@ describe('push', () => {
main: 'mytag-master',
partial: [
'mytag-20200110',
'mytag-20200110-093000',
'mytag-tag-',
'mytag-baseref-',
'mytag-defbranch'
@@ -615,6 +619,7 @@ describe('push', () => {
[
'user/app:mytag-master',
'user/app:mytag-20200110',
'user/app:mytag-20200110-093000',
'user/app:mytag-tag-',
'user/app:mytag-baseref-',
'user/app:mytag-defbranch'
@@ -732,6 +737,7 @@ describe('push', () => {
describe('tag', () => {
// prettier-ignore
// eslint-disable-next-line jest/expect-expect
test.each([
[
'tag01',
@@ -1277,9 +1283,9 @@ describe('tag', () => {
{
images: ['org/app', 'ghcr.io/user/app'],
tags: [
`type=match,pattern=p1-v(\\d.\\d.\\d),group=1`,
`type=match,pattern=p1-v(\\d.\\d),group=1`,
`type=match,pattern=p1-v(\\d.\\d),group=3`,
`type=match,pattern=p1/v(\\d.\\d.\\d),group=1`,
`type=match,pattern=p1/v(\\d.\\d),group=1`,
`type=match,pattern=p1/v(\\d.\\d),group=3`,
`type=ref,event=pr`,
`type=sha`
]
@@ -1316,8 +1322,8 @@ describe('tag', () => {
{
images: ['org/app', 'ghcr.io/user/app'],
tags: [
`type=match,pattern=p1-v(\\d.\\d.\\d),group=1`,
`type=match,pattern=p1-v(\\d.\\d),group=1,suffix=`,
`type=match,pattern=p1/v(\\d.\\d.\\d),group=1`,
`type=match,pattern=p1/v(\\d.\\d),group=1,suffix=`,
`type=ref,event=pr`,
`type=sha`
],
@@ -1777,6 +1783,7 @@ describe('tag', () => {
describe('latest', () => {
// prettier-ignore
// eslint-disable-next-line jest/expect-expect
test.each([
[
'latest01',
@@ -2064,6 +2071,7 @@ describe('latest', () => {
describe('pr', () => {
// prettier-ignore
// eslint-disable-next-line jest/expect-expect
test.each([
[
'pr01',
@@ -2409,8 +2417,373 @@ describe('pr', () => {
])('given %p with %p event', tagsLabelsTest);
});
describe('pr-head-sha', () => {
// prettier-ignore
// eslint-disable-next-line jest/expect-expect
test.each([
[
'pr01',
'event_pull_request.env',
{
images: ['user/app'],
} as Inputs,
{
main: 'pr-15',
partial: [],
latest: false
} as Version,
[
'user/app:pr-15'
],
[
"org.opencontainers.image.title=Hello-World",
"org.opencontainers.image.description=This your first repo!",
"org.opencontainers.image.url=https://github.com/octocat/Hello-World",
"org.opencontainers.image.source=https://github.com/octocat/Hello-World",
"org.opencontainers.image.version=pr-15",
"org.opencontainers.image.created=2020-01-10T00:30:00.000Z",
"org.opencontainers.image.revision=3370e228f2209994d57af4427fe64e71bb79ac96",
"org.opencontainers.image.licenses=MIT"
]
],
[
'pr02',
'event_pull_request.env',
{
images: ['org/app', 'ghcr.io/user/app'],
} as Inputs,
{
main: 'pr-15',
partial: [],
latest: false
} as Version,
[
'org/app:pr-15',
'ghcr.io/user/app:pr-15'
],
[
"org.opencontainers.image.title=Hello-World",
"org.opencontainers.image.description=This your first repo!",
"org.opencontainers.image.url=https://github.com/octocat/Hello-World",
"org.opencontainers.image.source=https://github.com/octocat/Hello-World",
"org.opencontainers.image.version=pr-15",
"org.opencontainers.image.created=2020-01-10T00:30:00.000Z",
"org.opencontainers.image.revision=3370e228f2209994d57af4427fe64e71bb79ac96",
"org.opencontainers.image.licenses=MIT"
]
],
[
'pr03',
'event_pull_request.env',
{
images: ['org/app', 'ghcr.io/user/app'],
tags: [
`type=ref,event=pr`,
`type=sha`
]
} as Inputs,
{
main: 'pr-15',
partial: ['sha-3370e22'],
latest: false
} as Version,
[
'org/app:pr-15',
'org/app:sha-3370e22',
'ghcr.io/user/app:pr-15',
'ghcr.io/user/app:sha-3370e22'
],
[
"org.opencontainers.image.title=Hello-World",
"org.opencontainers.image.description=This your first repo!",
"org.opencontainers.image.url=https://github.com/octocat/Hello-World",
"org.opencontainers.image.source=https://github.com/octocat/Hello-World",
"org.opencontainers.image.version=pr-15",
"org.opencontainers.image.created=2020-01-10T00:30:00.000Z",
"org.opencontainers.image.revision=3370e228f2209994d57af4427fe64e71bb79ac96",
"org.opencontainers.image.licenses=MIT"
]
],
[
'pr04',
'event_pull_request.env',
{
images: ['org/app', 'ghcr.io/user/app'],
tags: [
`type=sha,priority=2000`,
`type=ref,event=pr`
]
} as Inputs,
{
main: 'sha-3370e22',
partial: ['pr-15'],
latest: false
} as Version,
[
'org/app:sha-3370e22',
'org/app:pr-15',
'ghcr.io/user/app:sha-3370e22',
'ghcr.io/user/app:pr-15'
],
[
"org.opencontainers.image.title=Hello-World",
"org.opencontainers.image.description=This your first repo!",
"org.opencontainers.image.url=https://github.com/octocat/Hello-World",
"org.opencontainers.image.source=https://github.com/octocat/Hello-World",
"org.opencontainers.image.version=sha-3370e22",
"org.opencontainers.image.created=2020-01-10T00:30:00.000Z",
"org.opencontainers.image.revision=3370e228f2209994d57af4427fe64e71bb79ac96",
"org.opencontainers.image.licenses=MIT"
]
],
[
'pr05',
'event_pull_request.env',
{
images: ['org/app', 'ghcr.io/user/app'],
tags: [
`type=ref,event=pr`
],
flavor: [
`prefix=glo-`,
`suffix=-bal`
]
} as Inputs,
{
main: 'pr-15-bal',
partial: [],
latest: false
} as Version,
[
'org/app:pr-15-bal',
'ghcr.io/user/app:pr-15-bal'
],
[
"org.opencontainers.image.title=Hello-World",
"org.opencontainers.image.description=This your first repo!",
"org.opencontainers.image.url=https://github.com/octocat/Hello-World",
"org.opencontainers.image.source=https://github.com/octocat/Hello-World",
"org.opencontainers.image.version=pr-15-bal",
"org.opencontainers.image.created=2020-01-10T00:30:00.000Z",
"org.opencontainers.image.revision=3370e228f2209994d57af4427fe64e71bb79ac96",
"org.opencontainers.image.licenses=MIT"
]
],
[
'pr06',
'event_pull_request.env',
{
images: ['org/app', 'ghcr.io/user/app'],
tags: [
`type=ref,event=pr,prefix=`
],
flavor: [
`prefix=glo-`,
`suffix=-bal`
]
} as Inputs,
{
main: '15-bal',
partial: [],
latest: false
} as Version,
[
'org/app:15-bal',
'ghcr.io/user/app:15-bal'
],
[
"org.opencontainers.image.title=Hello-World",
"org.opencontainers.image.description=This your first repo!",
"org.opencontainers.image.url=https://github.com/octocat/Hello-World",
"org.opencontainers.image.source=https://github.com/octocat/Hello-World",
"org.opencontainers.image.version=15-bal",
"org.opencontainers.image.created=2020-01-10T00:30:00.000Z",
"org.opencontainers.image.revision=3370e228f2209994d57af4427fe64e71bb79ac96",
"org.opencontainers.image.licenses=MIT"
]
],
[
'pr07',
'event_pull_request_target.env',
{
images: ['org/app', 'ghcr.io/user/app'],
tags: [
`type=sha,priority=2000`,
`type=ref,event=pr`
]
} as Inputs,
{
main: 'sha-3370e22',
partial: ['pr-15'],
latest: false
} as Version,
[
'org/app:sha-3370e22',
'org/app:pr-15',
'ghcr.io/user/app:sha-3370e22',
'ghcr.io/user/app:pr-15'
],
[
"org.opencontainers.image.title=Hello-World",
"org.opencontainers.image.description=This your first repo!",
"org.opencontainers.image.url=https://github.com/octocat/Hello-World",
"org.opencontainers.image.source=https://github.com/octocat/Hello-World",
"org.opencontainers.image.version=sha-3370e22",
"org.opencontainers.image.created=2020-01-10T00:30:00.000Z",
"org.opencontainers.image.revision=3370e228f2209994d57af4427fe64e71bb79ac96",
"org.opencontainers.image.licenses=MIT"
]
],
[
'pr08',
'event_pull_request_target.env',
{
images: ['org/app', 'ghcr.io/user/app'],
tags: [
`type=ref,event=pr,prefix=`
],
flavor: [
`prefix=glo-`,
`suffix=-bal`
]
} as Inputs,
{
main: '15-bal',
partial: [],
latest: false
} as Version,
[
'org/app:15-bal',
'ghcr.io/user/app:15-bal'
],
[
"org.opencontainers.image.title=Hello-World",
"org.opencontainers.image.description=This your first repo!",
"org.opencontainers.image.url=https://github.com/octocat/Hello-World",
"org.opencontainers.image.source=https://github.com/octocat/Hello-World",
"org.opencontainers.image.version=15-bal",
"org.opencontainers.image.created=2020-01-10T00:30:00.000Z",
"org.opencontainers.image.revision=3370e228f2209994d57af4427fe64e71bb79ac96",
"org.opencontainers.image.licenses=MIT"
]
],
[
'pr09',
'event_pull_request_target.env',
{
images: ['org/app'],
tags: [
`type=ref,event=tag`,
`type=ref,event=pr`,
`type=ref,event=branch`,
`type=sha`,
`type=sha,format=long`
]
} as Inputs,
{
main: 'pr-15',
partial: [
'sha-3370e22',
'sha-3370e228f2209994d57af4427fe64e71bb79ac96'
],
latest: false
} as Version,
[
'org/app:pr-15',
'org/app:sha-3370e22',
'org/app:sha-3370e228f2209994d57af4427fe64e71bb79ac96'
],
[
"org.opencontainers.image.title=Hello-World",
"org.opencontainers.image.description=This your first repo!",
"org.opencontainers.image.url=https://github.com/octocat/Hello-World",
"org.opencontainers.image.source=https://github.com/octocat/Hello-World",
"org.opencontainers.image.version=pr-15",
"org.opencontainers.image.created=2020-01-10T00:30:00.000Z",
"org.opencontainers.image.revision=3370e228f2209994d57af4427fe64e71bb79ac96",
"org.opencontainers.image.licenses=MIT"
]
],
[
'pr10',
'event_pull_request_target.env',
{
images: ['org/app'],
tags: [
`type=raw,value=mytag-{{base_ref}}`,
`type=raw,mytag-defbranch,enable={{is_default_branch}}`
]
} as Inputs,
{
main: 'mytag-master',
partial: [],
latest: false
} as Version,
[
'org/app:mytag-master'
],
[
"org.opencontainers.image.title=Hello-World",
"org.opencontainers.image.description=This your first repo!",
"org.opencontainers.image.url=https://github.com/octocat/Hello-World",
"org.opencontainers.image.source=https://github.com/octocat/Hello-World",
"org.opencontainers.image.version=mytag-master",
"org.opencontainers.image.created=2020-01-10T00:30:00.000Z",
"org.opencontainers.image.revision=3370e228f2209994d57af4427fe64e71bb79ac96",
"org.opencontainers.image.licenses=MIT"
]
],
[
'pr11',
'event_pull_request.env',
{
images: ['org/app'],
tags: [
`type=raw,value=mytag-{{base_ref}}`,
`type=raw,mytag-defbranch,enable={{is_default_branch}}`
]
} as Inputs,
{
main: 'mytag-master',
partial: [],
latest: false
} as Version,
[
'org/app:mytag-master'
],
[
"org.opencontainers.image.title=Hello-World",
"org.opencontainers.image.description=This your first repo!",
"org.opencontainers.image.url=https://github.com/octocat/Hello-World",
"org.opencontainers.image.source=https://github.com/octocat/Hello-World",
"org.opencontainers.image.version=mytag-master",
"org.opencontainers.image.created=2020-01-10T00:30:00.000Z",
"org.opencontainers.image.revision=3370e228f2209994d57af4427fe64e71bb79ac96",
"org.opencontainers.image.licenses=MIT"
]
],
])('given %p with %p event', async (name: string, envFile: string, inputs: Inputs, exVersion: Version, exTags: Array<string>, exLabels: Array<string>) => {
process.env = dotenv.parse(fs.readFileSync(path.join(__dirname, 'fixtures', envFile)));
process.env.DOCKER_METADATA_PR_HEAD_SHA = 'true';
const context = github.context();
const repo = await github.repo(process.env.GITHUB_TOKEN || '');
const meta = new Meta({...getInputs(), ...inputs}, context, repo);
const version = meta.version;
expect(version).toEqual(exVersion);
const tags = meta.getTags();
expect(tags).toEqual(exTags);
const labels = meta.getLabels();
expect(labels).toEqual(exLabels);
});
});
describe('schedule', () => {
// prettier-ignore
// eslint-disable-next-line jest/expect-expect
test.each([
[
'schedule01',
@@ -2625,11 +2998,40 @@ describe('schedule', () => {
"org.opencontainers.image.licenses=MIT"
]
],
[
'schedule08',
'event_schedule.env',
{
images: ['user/app'],
tags: [
`type=schedule,pattern={{date 'YYYYMMDD-HHmmss' tz='Asia/Tokyo'}}`
]
} as Inputs,
{
main: '20200110-093000',
partial: [],
latest: false
} as Version,
[
'user/app:20200110-093000'
],
[
"org.opencontainers.image.title=Hello-World",
"org.opencontainers.image.description=This your first repo!",
"org.opencontainers.image.url=https://github.com/octocat/Hello-World",
"org.opencontainers.image.source=https://github.com/octocat/Hello-World",
"org.opencontainers.image.version=20200110-093000",
"org.opencontainers.image.created=2020-01-10T00:30:00.000Z",
"org.opencontainers.image.revision=860c1904a1ce19322e91ac35af1ab07466440c37",
"org.opencontainers.image.licenses=MIT"
]
],
])('given %p with %p event', tagsLabelsTest);
});
describe('release', () => {
// prettier-ignore
// eslint-disable-next-line jest/expect-expect
test.each([
[
'release01',
@@ -2696,6 +3098,7 @@ describe('release', () => {
describe('raw', () => {
// prettier-ignore
// eslint-disable-next-line jest/expect-expect
test.each([
[
'raw01',
@@ -3065,6 +3468,7 @@ describe('raw', () => {
describe('json', () => {
// prettier-ignore
// eslint-disable-next-line jest/expect-expect
test.each([
[
'json01',
@@ -3315,6 +3719,7 @@ describe('json', () => {
describe('bake', () => {
// prettier-ignore
// eslint-disable-next-line jest/expect-expect
test.each([
[
'bake01',
@@ -3617,3 +4022,48 @@ describe('bake', () => {
expect(JSON.parse(fs.readFileSync(bakeFile, 'utf8'))).toEqual(exBakeDefinition);
});
});
describe('sepTags', () => {
// prettier-ignore
// eslint-disable-next-line jest/expect-expect
test.each([
[
'sepTags01',
'event_push_dev.env',
{
images: ['user/app'],
tags: [
`type=ref,event=branch`,
`type=raw,my`,
`type=raw,custom`,
`type=raw,tags`
],
sepTags: " "
} as Inputs,
"user/app:dev user/app:my user/app:custom user/app:tags"
],
[
'sepTags02',
'event_push_dev.env',
{
images: ['user/app'],
tags: [
`type=ref,event=branch`,
`type=raw,my`,
`type=raw,custom`,
`type=raw,tags`
],
sepTags: ","
} as Inputs,
"user/app:dev,user/app:my,user/app:custom,user/app:tags"
]
])('given %p with %p event', async (name: string, envFile: string, inputs: Inputs, expTags: string) => {
process.env = dotenv.parse(fs.readFileSync(path.join(__dirname, 'fixtures', envFile)));
const context = github.context();
const repo = await github.repo(process.env.GITHUB_TOKEN || '');
const meta = new Meta({...getInputs(), ...inputs}, context, repo);
expect(meta.getTags().join(inputs.sepTags)).toEqual(expTags);
});
});
+12
View File
@@ -126,6 +126,18 @@ describe('parse', () => {
} as Tag,
false
],
[
`type=schedule,enable=true,pattern={{date 'YYYYMMDD' tz='Asia/Tokyo'}}`,
{
type: Type.Schedule,
attrs: {
"priority": DefaultPriorities[Type.Schedule],
"enable": "true",
"pattern": `{{date 'YYYYMMDD' tz='Asia/Tokyo'}}`
}
} as Tag,
false
],
[
`type=semver,enable=true,pattern={{version}}`,
{
+1 -1
View File
@@ -46,5 +46,5 @@ outputs:
description: 'JSON output of tags and labels'
runs:
using: 'node12'
using: 'node16'
main: 'dist/index.js'
+1 -1
View File
@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1
ARG NODE_VERSION=12
ARG NODE_VERSION=16
FROM node:${NODE_VERSION}-alpine AS base
RUN apk add --no-cache cpio findutils git
Generated Vendored
+19 -13
View File
@@ -1,60 +1,66 @@
require('./sourcemap-register.js');(()=>{var __webpack_modules__={7351:function(t,a,r){"use strict";var d=this&&this.__createBinding||(Object.create?function(t,a,r,d){if(d===undefined)d=r;Object.defineProperty(t,d,{enumerable:true,get:function(){return a[r]}})}:function(t,a,r,d){if(d===undefined)d=r;t[d]=a[r]});var i=this&&this.__setModuleDefault||(Object.create?function(t,a){Object.defineProperty(t,"default",{enumerable:true,value:a})}:function(t,a){t["default"]=a});var o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var a={};if(t!=null)for(var r in t)if(r!=="default"&&Object.hasOwnProperty.call(t,r))d(a,t,r);i(a,t);return a};Object.defineProperty(a,"__esModule",{value:true});a.issue=a.issueCommand=void 0;const p=o(r(2037));const u=r(5278);function issueCommand(t,a,r){const d=new Command(t,a,r);process.stdout.write(d.toString()+p.EOL)}a.issueCommand=issueCommand;function issue(t,a=""){issueCommand(t,{},a)}a.issue=issue;const l="::";class Command{constructor(t,a,r){if(!t){t="missing.command"}this.command=t;this.properties=a;this.message=r}toString(){let t=l+this.command;if(this.properties&&Object.keys(this.properties).length>0){t+=" ";let a=true;for(const r in this.properties){if(this.properties.hasOwnProperty(r)){const d=this.properties[r];if(d){if(a){a=false}else{t+=","}t+=`${r}=${escapeProperty(d)}`}}}}t+=`${l}${escapeData(this.message)}`;return t}}function escapeData(t){return u.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(t){return u.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(t,a,r){"use strict";var d=this&&this.__createBinding||(Object.create?function(t,a,r,d){if(d===undefined)d=r;Object.defineProperty(t,d,{enumerable:true,get:function(){return a[r]}})}:function(t,a,r,d){if(d===undefined)d=r;t[d]=a[r]});var i=this&&this.__setModuleDefault||(Object.create?function(t,a){Object.defineProperty(t,"default",{enumerable:true,value:a})}:function(t,a){t["default"]=a});var o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var a={};if(t!=null)for(var r in t)if(r!=="default"&&Object.hasOwnProperty.call(t,r))d(a,t,r);i(a,t);return a};var p=this&&this.__awaiter||function(t,a,r,d){function adopt(t){return t instanceof r?t:new r((function(a){a(t)}))}return new(r||(r=Promise))((function(r,i){function fulfilled(t){try{step(d.next(t))}catch(t){i(t)}}function rejected(t){try{step(d["throw"](t))}catch(t){i(t)}}function step(t){t.done?r(t.value):adopt(t.value).then(fulfilled,rejected)}step((d=d.apply(t,a||[])).next())}))};Object.defineProperty(a,"__esModule",{value:true});a.getIDToken=a.getState=a.saveState=a.group=a.endGroup=a.startGroup=a.info=a.notice=a.warning=a.error=a.debug=a.isDebug=a.setFailed=a.setCommandEcho=a.setOutput=a.getBooleanInput=a.getMultilineInput=a.getInput=a.addPath=a.setSecret=a.exportVariable=a.ExitCode=void 0;const u=r(7351);const l=r(717);const c=r(5278);const m=o(r(2037));const h=o(r(1017));const v=r(8041);var g;(function(t){t[t["Success"]=0]="Success";t[t["Failure"]=1]="Failure"})(g=a.ExitCode||(a.ExitCode={}));function exportVariable(t,a){const r=c.toCommandValue(a);process.env[t]=r;const d=process.env["GITHUB_ENV"]||"";if(d){const a="_GitHubActionsFileCommandDelimeter_";const d=`${t}<<${a}${m.EOL}${r}${m.EOL}${a}`;l.issueCommand("ENV",d)}else{u.issueCommand("set-env",{name:t},r)}}a.exportVariable=exportVariable;function setSecret(t){u.issueCommand("add-mask",{},t)}a.setSecret=setSecret;function addPath(t){const a=process.env["GITHUB_PATH"]||"";if(a){l.issueCommand("PATH",t)}else{u.issueCommand("add-path",{},t)}process.env["PATH"]=`${t}${h.delimiter}${process.env["PATH"]}`}a.addPath=addPath;function getInput(t,a){const r=process.env[`INPUT_${t.replace(/ /g,"_").toUpperCase()}`]||"";if(a&&a.required&&!r){throw new Error(`Input required and not supplied: ${t}`)}if(a&&a.trimWhitespace===false){return r}return r.trim()}a.getInput=getInput;function getMultilineInput(t,a){const r=getInput(t,a).split("\n").filter((t=>t!==""));return r}a.getMultilineInput=getMultilineInput;function getBooleanInput(t,a){const r=["true","True","TRUE"];const d=["false","False","FALSE"];const i=getInput(t,a);if(r.includes(i))return true;if(d.includes(i))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${t}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}a.getBooleanInput=getBooleanInput;function setOutput(t,a){process.stdout.write(m.EOL);u.issueCommand("set-output",{name:t},a)}a.setOutput=setOutput;function setCommandEcho(t){u.issue("echo",t?"on":"off")}a.setCommandEcho=setCommandEcho;function setFailed(t){process.exitCode=g.Failure;error(t)}a.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}a.isDebug=isDebug;function debug(t){u.issueCommand("debug",{},t)}a.debug=debug;function error(t,a={}){u.issueCommand("error",c.toCommandPropertLine truncated
require('./sourcemap-register.js');(()=>{var __webpack_modules__={7351:function(p,o,a){"use strict";var t=this&&this.__createBinding||(Object.create?function(p,o,a,t){if(t===undefined)t=a;Object.defineProperty(p,t,{enumerable:true,get:function(){return o[a]}})}:function(p,o,a,t){if(t===undefined)t=a;p[t]=o[a]});var b=this&&this.__setModuleDefault||(Object.create?function(p,o){Object.defineProperty(p,"default",{enumerable:true,value:o})}:function(p,o){p["default"]=o});var d=this&&this.__importStar||function(p){if(p&&p.__esModule)return p;var o={};if(p!=null)for(var a in p)if(a!=="default"&&Object.hasOwnProperty.call(p,a))t(o,p,a);b(o,p);return o};Object.defineProperty(o,"__esModule",{value:true});o.issue=o.issueCommand=void 0;const M=d(a(2037));const r=a(5278);function issueCommand(p,o,a){const t=new Command(p,o,a);process.stdout.write(t.toString()+M.EOL)}o.issueCommand=issueCommand;function issue(p,o=""){issueCommand(p,{},o)}o.issue=issue;const z="::";class Command{constructor(p,o,a){if(!p){p="missing.command"}this.command=p;this.properties=o;this.message=a}toString(){let p=z+this.command;if(this.properties&&Object.keys(this.properties).length>0){p+=" ";let o=true;for(const a in this.properties){if(this.properties.hasOwnProperty(a)){const t=this.properties[a];if(t){if(o){o=false}else{p+=","}p+=`${a}=${escapeProperty(t)}`}}}}p+=`${z}${escapeData(this.message)}`;return p}}function escapeData(p){return r.toCommandValue(p).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(p){return r.toCommandValue(p).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(p,o,a){"use strict";var t=this&&this.__createBinding||(Object.create?function(p,o,a,t){if(t===undefined)t=a;Object.defineProperty(p,t,{enumerable:true,get:function(){return o[a]}})}:function(p,o,a,t){if(t===undefined)t=a;p[t]=o[a]});var b=this&&this.__setModuleDefault||(Object.create?function(p,o){Object.defineProperty(p,"default",{enumerable:true,value:o})}:function(p,o){p["default"]=o});var d=this&&this.__importStar||function(p){if(p&&p.__esModule)return p;var o={};if(p!=null)for(var a in p)if(a!=="default"&&Object.hasOwnProperty.call(p,a))t(o,p,a);b(o,p);return o};var M=this&&this.__awaiter||function(p,o,a,t){function adopt(p){return p instanceof a?p:new a((function(o){o(p)}))}return new(a||(a=Promise))((function(a,b){function fulfilled(p){try{step(t.next(p))}catch(p){b(p)}}function rejected(p){try{step(t["throw"](p))}catch(p){b(p)}}function step(p){p.done?a(p.value):adopt(p.value).then(fulfilled,rejected)}step((t=t.apply(p,o||[])).next())}))};Object.defineProperty(o,"__esModule",{value:true});o.getIDToken=o.getState=o.saveState=o.group=o.endGroup=o.startGroup=o.info=o.notice=o.warning=o.error=o.debug=o.isDebug=o.setFailed=o.setCommandEcho=o.setOutput=o.getBooleanInput=o.getMultilineInput=o.getInput=o.addPath=o.setSecret=o.exportVariable=o.ExitCode=void 0;const r=a(7351);const z=a(717);const c=a(5278);const i=d(a(2037));const O=d(a(1017));const u=a(8041);var l;(function(p){p[p["Success"]=0]="Success";p[p["Failure"]=1]="Failure"})(l=o.ExitCode||(o.ExitCode={}));function exportVariable(p,o){const a=c.toCommandValue(o);process.env[p]=a;const t=process.env["GITHUB_ENV"]||"";if(t){return z.issueFileCommand("ENV",z.prepareKeyValueMessage(p,o))}r.issueCommand("set-env",{name:p},a)}o.exportVariable=exportVariable;function setSecret(p){r.issueCommand("add-mask",{},p)}o.setSecret=setSecret;function addPath(p){const o=process.env["GITHUB_PATH"]||"";if(o){z.issueFileCommand("PATH",p)}else{r.issueCommand("add-path",{},p)}process.env["PATH"]=`${p}${O.delimiter}${process.env["PATH"]}`}o.addPath=addPath;function getInput(p,o){const a=process.env[`INPUT_${p.replace(/ /g,"_").toUpperCase()}`]||"";if(o&&o.required&&!a){throw new Error(`Input required and not supplied: ${p}`)}if(o&&o.trimWhitespace===false){return a}return a.trim()}o.getInput=getInput;function getMultilineInput(p,o){const a=getInput(p,o).split("\n").filter((p=>p!==""));if(o&&o.trimWhitespace===false){return a}return a.map((p=>p.trim()))}o.getMultilineInput=getMultilineInput;function getBooleanInput(p,o){const a=["true","True","TRUE"];const t=["false","False","FALSE"];const b=getInput(p,o);if(a.includes(b))return true;if(t.includes(b))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${p}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}o.getBooleanInput=getBooleanInput;function setOutput(p,o){const a=process.env["GITHUB_OUTPUT"]||"";if(a){return z.issueFileCommand("OUTPUT",z.prepareKeyValueMessage(p,o))}process.stdout.write(i.EOL);r.issueCommand("set-output",{name:p},c.toCommandValue(o))}o.setOutput=setOutput;function setCommandEcho(p){r.issue("echo",p?"on":"off")}o.setCommandEcho=setCommandEcho;function setFailed(p){process.exitCode=l.Failure;error(p)}o.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}o.isDeLine truncated
/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/function isObject(t){return Object.prototype.toString.call(t)==="[object Object]"}function isPlainObject(t){var a,r;if(isObject(t)===false)return false;a=t.constructor;if(a===undefined)return true;r=a.prototype;if(isObject(r)===false)return false;if(r.hasOwnProperty("isPrototypeOf")===false){return false}return true}a.isPlainObject=isPlainObject},7129:(t,a,r)=>{"use strict";const d=r(665);const i=Symbol("max");const o=Symbol("length");const p=Symbol("lengthCalculator");const u=Symbol("allowStale");const l=Symbol("maxAge");const c=Symbol("dispose");const m=Symbol("noDisposeOnSet");const h=Symbol("lruList");const v=Symbol("cache");const g=Symbol("updateAgeOnGet");const naiveLength=()=>1;class LRUCache{constructor(t){if(typeof t==="number")t={max:t};if(!t)t={};if(t.max&&(typeof t.max!=="number"||t.max<0))throw new TypeError("max must be a non-negative number");const a=this[i]=t.max||Infinity;const r=t.length||naiveLength;this[p]=typeof r!=="function"?naiveLength:r;this[u]=t.stale||false;if(t.maxAge&&typeof t.maxAge!=="number")throw new TypeError("maxAge must be a number");this[l]=t.maxAge||0;this[c]=t.dispose;this[m]=t.noDisposeOnSet||false;this[g]=t.updateAgeOnGet||false;this.reset()}set max(t){if(typeof t!=="number"||t<0)throw new TypeError("max must be a non-negative number");this[i]=t||Infinity;trim(this)}get max(){return this[i]}set allowStale(t){this[u]=!!t}get allowStale(){return this[u]}set maxAge(t){if(typeof t!=="number")throw new TypeError("maxAge must be a non-negative number");this[l]=t;trim(this)}get maxAge(){return this[l]}set lengthCalculator(t){if(typeof t!=="function")t=naiveLength;if(t!==this[p]){this[p]=t;this[o]=0;this[h].forEach((t=>{t.length=this[p](t.value,t.key);this[o]+=t.length}))}trim(this)}get lengthCalculator(){return this[p]}get length(){return this[o]}get itemCount(){return this[h].length}rforEach(t,a){a=a||this;for(let r=this[h].tail;r!==null;){const d=r.prev;forEachStep(this,t,r,a);r=d}}forEach(t,a){a=a||this;for(let r=this[h].head;r!==null;){const d=r.next;forEachStep(this,t,r,a);r=d}}keys(){return this[h].toArray().map((t=>t.key))}values(){return this[h].toArray().map((t=>t.value))}reset(){if(this[c]&&this[h]&&this[h].length){this[h].forEach((t=>this[c](t.key,t.value)))}this[v]=new Map;this[h]=new d;this[o]=0}dump(){return this[h].map((t=>isStale(this,t)?false:{k:t.key,v:t.value,e:t.now+(t.maxAge||0)})).toArray().filter((t=>t))}dumpLru(){return this[h]}set(t,a,r){r=r||this[l];if(r&&typeof r!=="number")throw new TypeError("maxAge must be a number");const d=r?Date.now():0;const u=this[p](a,t);if(this[v].has(t)){if(u>this[i]){del(this,this[v].get(t));return false}const p=this[v].get(t);const l=p.value;if(this[c]){if(!this[m])this[c](t,l.value)}l.now=d;l.maxAge=r;l.value=a;this[o]+=u-l.length;l.length=u;this.get(t);trim(this);return true}const g=new Entry(t,a,u,d,r);if(g.length>this[i]){if(this[c])this[c](t,a);return false}this[o]+=g.length;this[h].unshift(g);this[v].set(t,this[h].head);trim(this);return true}has(t){if(!this[v].has(t))return false;const a=this[v].get(t).value;return!isStale(this,a)}get(t){return get(this,t,true)}peek(t){return get(this,t,false)}pop(){const t=this[h].tail;if(!t)return null;del(this,t);return t.value}del(t){del(this,this[v].get(t))}load(t){this.reset();const a=Date.now();for(let r=t.length-1;r>=0;r--){const d=t[r];const i=d.e||0;if(i===0)this.set(d.k,d.v);else{const t=i-a;if(t>0){this.set(d.k,d.v,t)}}}}prune(){this[v].forEach(((t,a)=>get(this,a,false)))}}const get=(t,a,r)=>{const d=t[v].get(a);if(d){const a=d.value;if(isStale(t,a)){del(t,d);if(!t[u])return undefined}else{if(r){if(t[g])d.value.now=Date.now();t[h].unshiftNode(d)}}return a.value}};const isStale=(t,a)=>{if(!a||!a.maxAge&&!t[l])return false;const r=Date.now()-a.now;return a.maxAge?r>a.maxAge:t[l]&&r>t[l]};const trim=t=>{if(t[o]>t[i]){for(let a=t[h].tail;t[o]>t[i]&&a!==null;){const r=a.prev;del(t,a);a=r}}};const del=(t,a)=>{if(a){const r=a.value;if(t[c])t[c](r.key,r.value);t[o]-=r.length;t[v].delete(r.key);t[h].removeNode(a)}};class Entry{constructor(t,a,r,d,i){this.key=t;this.value=a;this.length=r;this.now=d;this.maxAge=i||0}}const forEachStep=(t,a,r,d)=>{let i=r.value;if(isStale(t,i)){del(t,r);if(!t[u])i=undefined}if(i)a.call(d,i.value,i.key,t)};t.exports=LRUCache},9623:function(t,a,r){t=r.nmd(t);
*/function isObject(p){return Object.prototype.toString.call(p)==="[object Object]"}function isPlainObject(p){var o,a;if(isObject(p)===false)return false;o=p.constructor;if(o===undefined)return true;a=o.prototype;if(isObject(a)===false)return false;if(a.hasOwnProperty("isPrototypeOf")===false){return false}return true}o.isPlainObject=isPlainObject},7129:(p,o,a)=>{"use strict";const t=a(665);const b=Symbol("max");const d=Symbol("length");const M=Symbol("lengthCalculator");const r=Symbol("allowStale");const z=Symbol("maxAge");const c=Symbol("dispose");const i=Symbol("noDisposeOnSet");const O=Symbol("lruList");const u=Symbol("cache");const l=Symbol("updateAgeOnGet");const naiveLength=()=>1;class LRUCache{constructor(p){if(typeof p==="number")p={max:p};if(!p)p={};if(p.max&&(typeof p.max!=="number"||p.max<0))throw new TypeError("max must be a non-negative number");const o=this[b]=p.max||Infinity;const a=p.length||naiveLength;this[M]=typeof a!=="function"?naiveLength:a;this[r]=p.stale||false;if(p.maxAge&&typeof p.maxAge!=="number")throw new TypeError("maxAge must be a number");this[z]=p.maxAge||0;this[c]=p.dispose;this[i]=p.noDisposeOnSet||false;this[l]=p.updateAgeOnGet||false;this.reset()}set max(p){if(typeof p!=="number"||p<0)throw new TypeError("max must be a non-negative number");this[b]=p||Infinity;trim(this)}get max(){return this[b]}set allowStale(p){this[r]=!!p}get allowStale(){return this[r]}set maxAge(p){if(typeof p!=="number")throw new TypeError("maxAge must be a non-negative number");this[z]=p;trim(this)}get maxAge(){return this[z]}set lengthCalculator(p){if(typeof p!=="function")p=naiveLength;if(p!==this[M]){this[M]=p;this[d]=0;this[O].forEach((p=>{p.length=this[M](p.value,p.key);this[d]+=p.length}))}trim(this)}get lengthCalculator(){return this[M]}get length(){return this[d]}get itemCount(){return this[O].length}rforEach(p,o){o=o||this;for(let a=this[O].tail;a!==null;){const t=a.prev;forEachStep(this,p,a,o);a=t}}forEach(p,o){o=o||this;for(let a=this[O].head;a!==null;){const t=a.next;forEachStep(this,p,a,o);a=t}}keys(){return this[O].toArray().map((p=>p.key))}values(){return this[O].toArray().map((p=>p.value))}reset(){if(this[c]&&this[O]&&this[O].length){this[O].forEach((p=>this[c](p.key,p.value)))}this[u]=new Map;this[O]=new t;this[d]=0}dump(){return this[O].map((p=>isStale(this,p)?false:{k:p.key,v:p.value,e:p.now+(p.maxAge||0)})).toArray().filter((p=>p))}dumpLru(){return this[O]}set(p,o,a){a=a||this[z];if(a&&typeof a!=="number")throw new TypeError("maxAge must be a number");const t=a?Date.now():0;const r=this[M](o,p);if(this[u].has(p)){if(r>this[b]){del(this,this[u].get(p));return false}const M=this[u].get(p);const z=M.value;if(this[c]){if(!this[i])this[c](p,z.value)}z.now=t;z.maxAge=a;z.value=o;this[d]+=r-z.length;z.length=r;this.get(p);trim(this);return true}const l=new Entry(p,o,r,t,a);if(l.length>this[b]){if(this[c])this[c](p,o);return false}this[d]+=l.length;this[O].unshift(l);this[u].set(p,this[O].head);trim(this);return true}has(p){if(!this[u].has(p))return false;const o=this[u].get(p).value;return!isStale(this,o)}get(p){return get(this,p,true)}peek(p){return get(this,p,false)}pop(){const p=this[O].tail;if(!p)return null;del(this,p);return p.value}del(p){del(this,this[u].get(p))}load(p){this.reset();const o=Date.now();for(let a=p.length-1;a>=0;a--){const t=p[a];const b=t.e||0;if(b===0)this.set(t.k,t.v);else{const p=b-o;if(p>0){this.set(t.k,t.v,p)}}}}prune(){this[u].forEach(((p,o)=>get(this,o,false)))}}const get=(p,o,a)=>{const t=p[u].get(o);if(t){const o=t.value;if(isStale(p,o)){del(p,t);if(!p[r])return undefined}else{if(a){if(p[l])t.value.now=Date.now();p[O].unshiftNode(t)}}return o.value}};const isStale=(p,o)=>{if(!o||!o.maxAge&&!p[z])return false;const a=Date.now()-o.now;return o.maxAge?a>o.maxAge:p[z]&&a>p[z]};const trim=p=>{if(p[d]>p[b]){for(let o=p[O].tail;p[d]>p[b]&&o!==null;){const a=o.prev;del(p,o);o=a}}};const del=(p,o)=>{if(o){const a=o.value;if(p[c])p[c](a.key,a.value);p[d]-=a.length;p[u].delete(a.key);p[O].removeNode(o)}};class Entry{constructor(p,o,a,t,b){this.key=p;this.value=o;this.length=a;this.now=t;this.maxAge=b||0}}const forEachStep=(p,o,a,t)=>{let b=a.value;if(isStale(p,b)){del(p,a);if(!p[r])b=undefined}if(b)o.call(t,b.value,b.key,p)};p.exports=LRUCache},7936:(p,o,a)=>{var t=p.exports=a(6345);t.tz.load(a(1128))},6345:function(p,o,a){
//! moment-timezone.js
//! version : 0.5.40
//! Copyright (c) JS Foundation and other contributors
//! license : MIT
//! github.com/moment/moment-timezone
(function(o,t){"use strict";if(true&&p.exports){p.exports=t(a(9623))}else if(typeof define==="function"&&define.amd){define(["moment"],t)}else{t(o.moment)}})(this,(function(p){"use strict";if(p.version===undefined&&p.default){p=p.default}var o="0.5.40",a={},t={},b={},d={},M={},r;if(!p||typeof p.version!=="string"){logError("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/")}var z=p.version.split("."),c=+z[0],i=+z[1];if(c<2||c===2&&i<6){logError("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js "+p.version+". See momentjs.com")}function charCodeToInt(p){if(p>96){return p-87}else if(p>64){return p-29}return p-48}function unpackBase60(p){var o=0,a=p.split("."),t=a[0],b=a[1]||"",d=1,M,r=0,z=1;if(p.charCodeAt(0)===45){o=1;z=-1}for(o;o<t.length;o++){M=charCodeToInt(t.charCodeAt(o));r=60*r+M}for(o=0;o<b.length;o++){d=d/60;M=charCodeToInt(b.charCodeAt(o));r+=M*d}return r*z}function arrayToInt(p){for(var o=0;o<p.length;o++){p[o]=unpackBase60(p[o])}}function intToUntil(p,o){for(var a=0;a<o;a++){p[a]=Math.round((p[a-1]||0)+p[a]*6e4)}p[o-1]=Infinity}function mapIndices(p,o){var a=[],t;for(t=0;t<o.length;t++){a[t]=p[o[t]]}return a}function unpack(p){var o=p.split("|"),a=o[2].split(" "),t=o[3].split(""),b=o[4].split(" ");arrayToInt(a);arrayToInt(t);arrayToInt(b);intToUntil(b,t.length);return{name:o[0],abbrs:mapIndices(o[1].split(" "),t),offsets:mapIndices(a,t),untils:b,population:o[5]|0}}function Zone(p){if(p){this._set(unpack(p))}}Zone.prototype={_set:function(p){this.name=p.name;this.abbrs=p.abbrs;this.untils=p.untils;this.offsets=p.offsets;this.population=p.population},_index:function(p){var o=+p,a=this.untils,t;for(t=0;t<a.length;t++){if(o<a[t]){return t}}},countries:function(){var p=this.name;return Object.keys(b).filter((function(o){return b[o].zones.indexOf(p)!==-1}))},parse:function(p){var o=+p,a=this.offsets,t=this.untils,b=t.length-1,d,M,r,z;for(z=0;z<b;z++){d=a[z];M=a[z+1];r=a[z?z-1:z];if(d<M&&tz.moveAmbiguousForward){d=M}else if(d>r&&tz.moveInvalidForward){d=r}if(o<t[z]-d*6e4){return a[z]}}return a[b]},abbr:function(p){return this.abbrs[this._index(p)]},offset:function(p){logError("zone.offset has been deprecated in favor of zone.utcOffset");return this.offsets[this._index(p)]},utcOffset:function(p){return this.offsets[this._index(p)]}};function Country(p,o){this.name=p;this.zones=o}function OffsetAt(p){var o=p.toTimeString();var a=o.match(/\([a-z ]+\)/i);if(a&&a[0]){a=a[0].match(/[A-Z]/g);a=a?a.join(""):undefined}else{a=o.match(/[A-Z]{3,5}/g);a=a?a[0]:undefined}if(a==="GMT"){a=undefined}this.at=+p;this.abbr=a;this.offset=p.getTimezoneOffset()}function ZoneScore(p){this.zone=p;this.offsetScore=0;this.abbrScore=0}ZoneScore.prototype.scoreOffsetAt=function(p){this.offsetScore+=Math.abs(this.zone.utcOffset(p.at)-p.offset);if(this.zone.abbr(p.at).replace(/[^A-Z]/g,"")!==p.abbr){this.abbrScore++}};function findChange(p,o){var a,t;while(t=((o.at-p.at)/12e4|0)*6e4){a=new OffsetAt(new Date(p.at+t));if(a.offset===p.offset){p=a}else{o=a}}return p}function userOffsets(){var p=(new Date).getFullYear()-2,o=new OffsetAt(new Date(p,0,1)),a=[o],t,b,d;for(d=1;d<48;d++){b=new OffsetAt(new Date(p,d,1));if(b.offset!==o.offset){t=findChange(o,b);a.push(t);a.push(new OffsetAt(new Date(t.at+6e4)))}o=b}for(d=0;d<4;d++){a.push(new OffsetAt(new Date(p+d,0,1)));a.push(new OffsetAt(new Date(p+d,6,1)))}return a}function sortZoneScores(p,o){if(p.offsetScore!==o.offsetScore){return p.offsetScore-o.offsetScore}if(p.abbrScore!==o.abbrScore){return p.abbrScore-o.abbrScore}if(p.zone.population!==o.zone.population){return o.zone.population-p.zone.population}return o.zone.name.localeCompare(p.zone.name)}function addToGuesses(p,o){var a,t;arrayToInt(o);for(a=0;a<o.length;a++){t=o[a];M[t]=M[t]||{};M[t][p]=true}}function guessesForUserOffsets(p){var o=p.length,a={},t=[],b,r,z;for(b=0;b<o;b++){z=M[p[b].offset]||{};for(r in z){if(z.hasOwnProperty(r)){a[r]=true}}}for(b in a){if(a.hasOwnProperty(b)){t.push(d[b])}}return t}function rebuildGuess(){try{var p=Intl.DateTimeFormat().resolvedOptions().timeZone;if(p&&p.length>3){var o=d[normalizeName(p)];if(o){return o}logError("Moment Timezone found "+p+" from the Intl api, but did not have that data loaded.")}}catch(p){}var a=userOffsets(),t=a.length,b=guessesForUserOffsets(a),M=[],r,z,c;for(z=0;z<b.length;z++){r=new ZoneScore(getZone(b[z]),t);for(c=0;c<t;c++){r.scoreOffsetAt(a[c])}M.push(r)}M.sort(sortZoneScores);return M.length>0?M[0].zone.name:undefined}function guess(p){if(!r||p){r=rebuildGuess()}return r}function normalizeName(p){return(p||"").toLowerCase().replace(/\//g,"_")}function addZone(p){var o,t,b,M;if(typeof p==="string"){p=[p]}for(o=0;o<p.length;o++){b=p[o].split("|");t=b[0];M=normalizeName(t);a[M]=p[o];d[M]=t;addToGuesses(M,b[2].split(" "))}}function getZone(p,o){p=normalizeName(p);var b=a[p];var M;if(b instanceof Zone){return b}if(typeof b==="string"){b=new Zone(b);a[p]=b;return b}if(t[p]&&o!==getZone&&(M=getZone(t[p],getZone))Line truncated
//! moment.js
//! version : 2.29.3
//! version : 2.29.4
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
(function(a,r){true?t.exports=r():0})(this,(function(){"use strict";var a;function hooks(){return a.apply(null,arguments)}function setHookCallback(t){a=t}function isArray(t){return t instanceof Array||Object.prototype.toString.call(t)==="[object Array]"}function isObject(t){return t!=null&&Object.prototype.toString.call(t)==="[object Object]"}function hasOwnProp(t,a){return Object.prototype.hasOwnProperty.call(t,a)}function isObjectEmpty(t){if(Object.getOwnPropertyNames){return Object.getOwnPropertyNames(t).length===0}else{var a;for(a in t){if(hasOwnProp(t,a)){return false}}return true}}function isUndefined(t){return t===void 0}function isNumber(t){return typeof t==="number"||Object.prototype.toString.call(t)==="[object Number]"}function isDate(t){return t instanceof Date||Object.prototype.toString.call(t)==="[object Date]"}function map(t,a){var r=[],d,i=t.length;for(d=0;d<i;++d){r.push(a(t[d],d))}return r}function extend(t,a){for(var r in a){if(hasOwnProp(a,r)){t[r]=a[r]}}if(hasOwnProp(a,"toString")){t.toString=a.toString}if(hasOwnProp(a,"valueOf")){t.valueOf=a.valueOf}return t}function createUTC(t,a,r,d){return createLocalOrUTC(t,a,r,d,true).utc()}function defaultParsingFlags(){return{empty:false,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:false,invalidEra:null,invalidMonth:null,invalidFormat:false,userInvalidated:false,iso:false,parsedDateParts:[],era:null,meridiem:null,rfc2822:false,weekdayMismatch:false}}function getParsingFlags(t){if(t._pf==null){t._pf=defaultParsingFlags()}return t._pf}var r;if(Array.prototype.some){r=Array.prototype.some}else{r=function(t){var a=Object(this),r=a.length>>>0,d;for(d=0;d<r;d++){if(d in a&&t.call(this,a[d],d,a)){return true}}return false}}function isValid(t){if(t._isValid==null){var a=getParsingFlags(t),d=r.call(a.parsedDateParts,(function(t){return t!=null})),i=!isNaN(t._d.getTime())&&a.overflow<0&&!a.empty&&!a.invalidEra&&!a.invalidMonth&&!a.invalidWeekday&&!a.weekdayMismatch&&!a.nullInput&&!a.invalidFormat&&!a.userInvalidated&&(!a.meridiem||a.meridiem&&d);if(t._strict){i=i&&a.charsLeftOver===0&&a.unusedTokens.length===0&&a.bigHour===undefined}if(Object.isFrozen==null||!Object.isFrozen(t)){t._isValid=i}else{return i}}return t._isValid}function createInvalid(t){var a=createUTC(NaN);if(t!=null){extend(getParsingFlags(a),t)}else{getParsingFlags(a).userInvalidated=true}return a}var d=hooks.momentProperties=[],i=false;function copyConfig(t,a){var r,i,o,p=d.length;if(!isUndefined(a._isAMomentObject)){t._isAMomentObject=a._isAMomentObject}if(!isUndefined(a._i)){t._i=a._i}if(!isUndefined(a._f)){t._f=a._f}if(!isUndefined(a._l)){t._l=a._l}if(!isUndefined(a._strict)){t._strict=a._strict}if(!isUndefined(a._tzm)){t._tzm=a._tzm}if(!isUndefined(a._isUTC)){t._isUTC=a._isUTC}if(!isUndefined(a._offset)){t._offset=a._offset}if(!isUndefined(a._pf)){t._pf=getParsingFlags(a)}if(!isUndefined(a._locale)){t._locale=a._locale}if(p>0){for(r=0;r<p;r++){i=d[r];o=a[i];if(!isUndefined(o)){t[i]=o}}}return t}function Moment(t){copyConfig(this,t);this._d=new Date(t._d!=null?t._d.getTime():NaN);if(!this.isValid()){this._d=new Date(NaN)}if(i===false){i=true;hooks.updateOffset(this);i=false}}function isMoment(t){return t instanceof Moment||t!=null&&t._isAMomentObject!=null}function warn(t){if(hooks.suppressDeprecationWarnings===false&&typeof console!=="undefined"&&console.warn){console.warn("Deprecation warning: "+t)}}function deprecate(t,a){var r=true;return extend((function(){if(hooks.deprecationHandler!=null){hooks.deprecationHandler(null,t)}if(r){var d=[],i,o,p,u=arguments.length;for(o=0;o<u;o++){i="";if(typeof arguments[o]==="object"){i+="\n["+o+"] ";for(p in arguments[0]){if(hasOwnProp(arguments[0],p)){i+=p+": "+arguments[0][p]+", "}}i=i.slice(0,-2)}else{i=arguments[o]}d.push(i)}warn(t+"\nArguments: "+Array.prototype.slice.call(d).join("")+"\n"+(new Error).stack);r=false}return a.apply(this,arguments)}),a)}var o={};function deprecateSimple(t,a){if(hooks.deprecationHandler!=null){hooks.deprecationHandler(t,a)}if(!o[t]){warn(a);o[t]=true}}hooks.suppressDeprecationWarnings=false;hooks.deprecationHandler=null;function isFunction(t){return typeof Function!=="undefined"&&t instanceof Function||Object.prototype.toString.call(t)==="[object Function]"}function set(t){var a,r;for(r in t){if(hasOwnProp(t,r)){a=t[r];if(isFunction(a)){this[r]=a}else{this["_"+r]=a}}}this._config=t;this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function mergeConfigs(t,a){var r=extend({},t),d;for(d in a){if(hasOwnProp(a,d)){if(isObject(t[d])&&isObject(a[d])){r[d]={};extend(r[d],t[d]);extend(r[d],a[d])}else if(a[d]!=null){r[d]=a[d]}else{delete r[d]}}}for(d in t){if(hasOwnProp(t,d)&&!hasOwnProp(a,d)&&isObject(t[d])){r[d]=extend({},r[d])}}return r}function Locale(t){if(t!=null){this.set(t)}}var p;if(Object.keys){p=Object.keys}else{p=function(t){var a,r=[];for(a in t){if(hasOwnProp(t,a)){r.push(a)}}return r}}var u={sameDay:Line truncated
(function(o,a){true?p.exports=a():0})(this,(function(){"use strict";var o;function hooks(){return o.apply(null,arguments)}function setHookCallback(p){o=p}function isArray(p){return p instanceof Array||Object.prototype.toString.call(p)==="[object Array]"}function isObject(p){return p!=null&&Object.prototype.toString.call(p)==="[object Object]"}function hasOwnProp(p,o){return Object.prototype.hasOwnProperty.call(p,o)}function isObjectEmpty(p){if(Object.getOwnPropertyNames){return Object.getOwnPropertyNames(p).length===0}else{var o;for(o in p){if(hasOwnProp(p,o)){return false}}return true}}function isUndefined(p){return p===void 0}function isNumber(p){return typeof p==="number"||Object.prototype.toString.call(p)==="[object Number]"}function isDate(p){return p instanceof Date||Object.prototype.toString.call(p)==="[object Date]"}function map(p,o){var a=[],t,b=p.length;for(t=0;t<b;++t){a.push(o(p[t],t))}return a}function extend(p,o){for(var a in o){if(hasOwnProp(o,a)){p[a]=o[a]}}if(hasOwnProp(o,"toString")){p.toString=o.toString}if(hasOwnProp(o,"valueOf")){p.valueOf=o.valueOf}return p}function createUTC(p,o,a,t){return createLocalOrUTC(p,o,a,t,true).utc()}function defaultParsingFlags(){return{empty:false,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:false,invalidEra:null,invalidMonth:null,invalidFormat:false,userInvalidated:false,iso:false,parsedDateParts:[],era:null,meridiem:null,rfc2822:false,weekdayMismatch:false}}function getParsingFlags(p){if(p._pf==null){p._pf=defaultParsingFlags()}return p._pf}var a;if(Array.prototype.some){a=Array.prototype.some}else{a=function(p){var o=Object(this),a=o.length>>>0,t;for(t=0;t<a;t++){if(t in o&&p.call(this,o[t],t,o)){return true}}return false}}function isValid(p){if(p._isValid==null){var o=getParsingFlags(p),t=a.call(o.parsedDateParts,(function(p){return p!=null})),b=!isNaN(p._d.getTime())&&o.overflow<0&&!o.empty&&!o.invalidEra&&!o.invalidMonth&&!o.invalidWeekday&&!o.weekdayMismatch&&!o.nullInput&&!o.invalidFormat&&!o.userInvalidated&&(!o.meridiem||o.meridiem&&t);if(p._strict){b=b&&o.charsLeftOver===0&&o.unusedTokens.length===0&&o.bigHour===undefined}if(Object.isFrozen==null||!Object.isFrozen(p)){p._isValid=b}else{return b}}return p._isValid}function createInvalid(p){var o=createUTC(NaN);if(p!=null){extend(getParsingFlags(o),p)}else{getParsingFlags(o).userInvalidated=true}return o}var t=hooks.momentProperties=[],b=false;function copyConfig(p,o){var a,b,d,M=t.length;if(!isUndefined(o._isAMomentObject)){p._isAMomentObject=o._isAMomentObject}if(!isUndefined(o._i)){p._i=o._i}if(!isUndefined(o._f)){p._f=o._f}if(!isUndefined(o._l)){p._l=o._l}if(!isUndefined(o._strict)){p._strict=o._strict}if(!isUndefined(o._tzm)){p._tzm=o._tzm}if(!isUndefined(o._isUTC)){p._isUTC=o._isUTC}if(!isUndefined(o._offset)){p._offset=o._offset}if(!isUndefined(o._pf)){p._pf=getParsingFlags(o)}if(!isUndefined(o._locale)){p._locale=o._locale}if(M>0){for(a=0;a<M;a++){b=t[a];d=o[b];if(!isUndefined(d)){p[b]=d}}}return p}function Moment(p){copyConfig(this,p);this._d=new Date(p._d!=null?p._d.getTime():NaN);if(!this.isValid()){this._d=new Date(NaN)}if(b===false){b=true;hooks.updateOffset(this);b=false}}function isMoment(p){return p instanceof Moment||p!=null&&p._isAMomentObject!=null}function warn(p){if(hooks.suppressDeprecationWarnings===false&&typeof console!=="undefined"&&console.warn){console.warn("Deprecation warning: "+p)}}function deprecate(p,o){var a=true;return extend((function(){if(hooks.deprecationHandler!=null){hooks.deprecationHandler(null,p)}if(a){var t=[],b,d,M,r=arguments.length;for(d=0;d<r;d++){b="";if(typeof arguments[d]==="object"){b+="\n["+d+"] ";for(M in arguments[0]){if(hasOwnProp(arguments[0],M)){b+=M+": "+arguments[0][M]+", "}}b=b.slice(0,-2)}else{b=arguments[d]}t.push(b)}warn(p+"\nArguments: "+Array.prototype.slice.call(t).join("")+"\n"+(new Error).stack);a=false}return o.apply(this,arguments)}),o)}var d={};function deprecateSimple(p,o){if(hooks.deprecationHandler!=null){hooks.deprecationHandler(p,o)}if(!d[p]){warn(o);d[p]=true}}hooks.suppressDeprecationWarnings=false;hooks.deprecationHandler=null;function isFunction(p){return typeof Function!=="undefined"&&p instanceof Function||Object.prototype.toString.call(p)==="[object Function]"}function set(p){var o,a;for(a in p){if(hasOwnProp(p,a)){o=p[a];if(isFunction(o)){this[a]=o}else{this["_"+a]=o}}}this._config=p;this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function mergeConfigs(p,o){var a=extend({},p),t;for(t in o){if(hasOwnProp(o,t)){if(isObject(p[t])&&isObject(o[t])){a[t]={};extend(a[t],p[t]);extend(a[t],o[t])}else if(o[t]!=null){a[t]=o[t]}else{delete a[t]}}}for(t in p){if(hasOwnProp(p,t)&&!hasOwnProp(o,t)&&isObject(p[t])){a[t]=extend({},a[t])}}return a}function Locale(p){if(p!=null){this.set(p)}}var M;if(Object.keys){M=Object.keys}else{M=function(p){var o,a=[];for(o in p){if(hasOwnProp(p,o)){a.push(o)}}return a}}var r={sameDay:Line truncated
//! moment.js
hooks.version="2.29.3";setHookCallback(createLocal);hooks.fn=We;hooks.min=min;hooks.max=max;hooks.now=now;hooks.utc=createUTC;hooks.unix=createUnix;hooks.months=listMonths;hooks.isDate=isDate;hooks.locale=getSetGlobalLocale;hooks.invalid=createInvalid;hooks.duration=createDuration;hooks.isMoment=isMoment;hooks.weekdays=listWeekdays;hooks.parseZone=createInZone;hooks.localeData=getLocale;hooks.isDuration=isDuration;hooks.monthsShort=listMonthsShort;hooks.weekdaysMin=listWeekdaysMin;hooks.defineLocale=defineLocale;hooks.updateLocale=updateLocale;hooks.locales=listLocales;hooks.weekdaysShort=listWeekdaysShort;hooks.normalizeUnits=normalizeUnits;hooks.relativeTimeRounding=getSetRelativeTimeRounding;hooks.relativeTimeThreshold=getSetRelativeTimeThreshold;hooks.calendarFormat=getCalendarFormat;hooks.prototype=We;hooks.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};return hooks}))},467:(t,a,r)=>{"use strict";Object.defineProperty(a,"__esModule",{value:true});function _interopDefault(t){return t&&typeof t==="object"&&"default"in t?t["default"]:t}var d=_interopDefault(r(2781));var i=_interopDefault(r(3685));var o=_interopDefault(r(7310));var p=_interopDefault(r(3323));var u=_interopDefault(r(5687));var l=_interopDefault(r(9796));const c=d.Readable;const m=Symbol("buffer");const h=Symbol("type");class Blob{constructor(){this[h]="";const t=arguments[0];const a=arguments[1];const r=[];let d=0;if(t){const a=t;const i=Number(a.length);for(let t=0;t<i;t++){const i=a[t];let o;if(i instanceof Buffer){o=i}else if(ArrayBuffer.isView(i)){o=Buffer.from(i.buffer,i.byteOffset,i.byteLength)}else if(i instanceof ArrayBuffer){o=Buffer.from(i)}else if(i instanceof Blob){o=i[m]}else{o=Buffer.from(typeof i==="string"?i:String(i))}d+=o.length;r.push(o)}}this[m]=Buffer.concat(r);let i=a&&a.type!==undefined&&String(a.type).toLowerCase();if(i&&!/[^\u0020-\u007E]/.test(i)){this[h]=i}}get size(){return this[m].length}get type(){return this[h]}text(){return Promise.resolve(this[m].toString())}arrayBuffer(){const t=this[m];const a=t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength);return Promise.resolve(a)}stream(){const t=new c;t._read=function(){};t.push(this[m]);t.push(null);return t}toString(){return"[object Blob]"}slice(){const t=this.size;const a=arguments[0];const r=arguments[1];let d,i;if(a===undefined){d=0}else if(a<0){d=Math.max(t+a,0)}else{d=Math.min(a,t)}if(r===undefined){i=t}else if(r<0){i=Math.max(t+r,0)}else{i=Math.min(r,t)}const o=Math.max(i-d,0);const p=this[m];const u=p.slice(d,d+o);const l=new Blob([],{type:arguments[2]});l[m]=u;return l}}Object.defineProperties(Blob.prototype,{size:{enumerable:true},type:{enumerable:true},slice:{enumerable:true}});Object.defineProperty(Blob.prototype,Symbol.toStringTag,{value:"Blob",writable:false,enumerable:false,configurable:true});function FetchError(t,a,r){Error.call(this,t);this.message=t;this.type=a;if(r){this.code=this.errno=r.code}Error.captureStackTrace(this,this.constructor)}FetchError.prototype=Object.create(Error.prototype);FetchError.prototype.constructor=FetchError;FetchError.prototype.name="FetchError";let v;try{v=r(2877).convert}catch(t){}const g=Symbol("Body internals");const _=d.PassThrough;function Body(t){var a=this;var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},i=r.size;let o=i===undefined?0:i;var p=r.timeout;let u=p===undefined?0:p;if(t==null){t=null}else if(isURLSearchParams(t)){t=Buffer.from(t.toString())}else if(isBlob(t));else if(Buffer.isBuffer(t));else if(Object.prototype.toString.call(t)==="[object ArrayBuffer]"){t=Buffer.from(t)}else if(ArrayBuffer.isView(t)){t=Buffer.from(t.buffer,t.byteOffset,t.byteLength)}else if(t instanceof d);else{t=Buffer.from(String(t))}this[g]={body:t,disturbed:false,error:null};this.size=o;this.timeout=u;if(t instanceof d){t.on("error",(function(t){const r=t.name==="AbortError"?t:new FetchError(`Invalid response body while trying to fetch ${a.url}: ${t.message}`,"system",t);a[g].error=r}))}}Body.prototype={get body(){return this[g].body},get bodyUsed(){return this[g].disturbed},arrayBuffer(){return consumeBody.call(this).then((function(t){return t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}))},blob(){let t=this.headers&&this.headers.get("content-type")||"";return consumeBody.call(this).then((function(a){return Object.assign(new Blob([],{type:t.toLowerCase()}),{[m]:a})}))},json(){var t=this;return consumeBody.call(this).then((function(a){try{return JSON.parse(a.toString())}catch(a){return Body.Promise.reject(new FetchError(`invalid json response body at ${t.url} reason: ${a.message}`,"invalid-json"))}}))},text(){return consumeBody.call(this).then((function(t){return t.toString()}))},buffer(){return consumeBody.call(this)},textConverted(){var t=this;return consumeBody.call(this).then((function(a){return coLine truncated
hooks.version="2.29.4";setHookCallback(createLocal);hooks.fn=He;hooks.min=min;hooks.max=max;hooks.now=now;hooks.utc=createUTC;hooks.unix=createUnix;hooks.months=listMonths;hooks.isDate=isDate;hooks.locale=getSetGlobalLocale;hooks.invalid=createInvalid;hooks.duration=createDuration;hooks.isMoment=isMoment;hooks.weekdays=listWeekdays;hooks.parseZone=createInZone;hooks.localeData=getLocale;hooks.isDuration=isDuration;hooks.monthsShort=listMonthsShort;hooks.weekdaysMin=listWeekdaysMin;hooks.defineLocale=defineLocale;hooks.updateLocale=updateLocale;hooks.locales=listLocales;hooks.weekdaysShort=listWeekdaysShort;hooks.normalizeUnits=normalizeUnits;hooks.relativeTimeRounding=getSetRelativeTimeRounding;hooks.relativeTimeThreshold=getSetRelativeTimeThreshold;hooks.calendarFormat=getCalendarFormat;hooks.prototype=He;hooks.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};return hooks}))},467:(p,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:true});function _interopDefault(p){return p&&typeof p==="object"&&"default"in p?p["default"]:p}var t=_interopDefault(a(2781));var b=_interopDefault(a(3685));var d=_interopDefault(a(7310));var M=_interopDefault(a(3323));var r=_interopDefault(a(5687));var z=_interopDefault(a(9796));const c=t.Readable;const i=Symbol("buffer");const O=Symbol("type");class Blob{constructor(){this[O]="";const p=arguments[0];const o=arguments[1];const a=[];let t=0;if(p){const o=p;const b=Number(o.length);for(let p=0;p<b;p++){const b=o[p];let d;if(b instanceof Buffer){d=b}else if(ArrayBuffer.isView(b)){d=Buffer.from(b.buffer,b.byteOffset,b.byteLength)}else if(b instanceof ArrayBuffer){d=Buffer.from(b)}else if(b instanceof Blob){d=b[i]}else{d=Buffer.from(typeof b==="string"?b:String(b))}t+=d.length;a.push(d)}}this[i]=Buffer.concat(a);let b=o&&o.type!==undefined&&String(o.type).toLowerCase();if(b&&!/[^\u0020-\u007E]/.test(b)){this[O]=b}}get size(){return this[i].length}get type(){return this[O]}text(){return Promise.resolve(this[i].toString())}arrayBuffer(){const p=this[i];const o=p.buffer.slice(p.byteOffset,p.byteOffset+p.byteLength);return Promise.resolve(o)}stream(){const p=new c;p._read=function(){};p.push(this[i]);p.push(null);return p}toString(){return"[object Blob]"}slice(){const p=this.size;const o=arguments[0];const a=arguments[1];let t,b;if(o===undefined){t=0}else if(o<0){t=Math.max(p+o,0)}else{t=Math.min(o,p)}if(a===undefined){b=p}else if(a<0){b=Math.max(p+a,0)}else{b=Math.min(a,p)}const d=Math.max(b-t,0);const M=this[i];const r=M.slice(t,t+d);const z=new Blob([],{type:arguments[2]});z[i]=r;return z}}Object.defineProperties(Blob.prototype,{size:{enumerable:true},type:{enumerable:true},slice:{enumerable:true}});Object.defineProperty(Blob.prototype,Symbol.toStringTag,{value:"Blob",writable:false,enumerable:false,configurable:true});function FetchError(p,o,a){Error.call(this,p);this.message=p;this.type=o;if(a){this.code=this.errno=a.code}Error.captureStackTrace(this,this.constructor)}FetchError.prototype=Object.create(Error.prototype);FetchError.prototype.constructor=FetchError;FetchError.prototype.name="FetchError";let u;try{u=a(2877).convert}catch(p){}const l=Symbol("Body internals");const A=t.PassThrough;function Body(p){var o=this;var a=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},b=a.size;let d=b===undefined?0:b;var M=a.timeout;let r=M===undefined?0:M;if(p==null){p=null}else if(isURLSearchParams(p)){p=Buffer.from(p.toString())}else if(isBlob(p));else if(Buffer.isBuffer(p));else if(Object.prototype.toString.call(p)==="[object ArrayBuffer]"){p=Buffer.from(p)}else if(ArrayBuffer.isView(p)){p=Buffer.from(p.buffer,p.byteOffset,p.byteLength)}else if(p instanceof t);else{p=Buffer.from(String(p))}this[l]={body:p,disturbed:false,error:null};this.size=d;this.timeout=r;if(p instanceof t){p.on("error",(function(p){const a=p.name==="AbortError"?p:new FetchError(`Invalid response body while trying to fetch ${o.url}: ${p.message}`,"system",p);o[l].error=a}))}}Body.prototype={get body(){return this[l].body},get bodyUsed(){return this[l].disturbed},arrayBuffer(){return consumeBody.call(this).then((function(p){return p.buffer.slice(p.byteOffset,p.byteOffset+p.byteLength)}))},blob(){let p=this.headers&&this.headers.get("content-type")||"";return consumeBody.call(this).then((function(o){return Object.assign(new Blob([],{type:p.toLowerCase()}),{[i]:o})}))},json(){var p=this;return consumeBody.call(this).then((function(o){try{return JSON.parse(o.toString())}catch(o){return Body.Promise.reject(new FetchError(`invalid json response body at ${p.url} reason: ${o.message}`,"invalid-json"))}}))},text(){return consumeBody.call(this).then((function(p){return p.toString()}))},buffer(){return consumeBody.call(this)},textConverted(){var p=this;return consumeBody.call(this).then((function(o){return coLine truncated
/*!
* XRegExp.build 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2012-present MIT License
*/var c=function _default(t){var a="xregexp";var r=/(\()(?!\?)|\\([1-9]\d*)|\\[\s\S]|\[(?:[^\\\]]|\\[\s\S])*\]/g;var d=t.union([/\({{([\w$]+)}}\)|{{([\w$]+)}}/,r],"g",{conjunction:"or"});function deanchor(t){var a=/^(?:\(\?:\))*\^/;var r=/\$(?:\(\?:\))*$/;if(a.test(t)&&r.test(t)&&r.test(t.replace(/\\[\s\S]/g,""))){return t.replace(a,"").replace(r,"")}return t}function asXRegExp(r,d){var i=d?"x":"";return t.isRegExp(r)?r[a]&&r[a].captureNames?r:t(r.source,i):t(r,i)}function interpolate(a){return a instanceof RegExp?a:t.escape(a)}function reduceToSubpatternsObject(t,a,r){t["subpattern".concat(r)]=a;return t}function embedSubpatternAfter(t,a,r){var d=a<r.length-1;return t+(d?"{{subpattern".concat(a,"}}"):"")}t.tag=function(a){return function(r){var d,i;for(var o=arguments.length,p=new Array(o>1?o-1:0),c=1;c<o;c++){p[c-1]=arguments[c]}var m=(0,l["default"])(d=(0,u["default"])(p).call(p,interpolate)).call(d,reduceToSubpatternsObject,{});var h=(0,u["default"])(i=r.raw).call(i,embedSubpatternAfter).join("");return t.build(h,m,a)}};t.build=function(i,u,l){l=l||"";var c=(0,p["default"])(l).call(l,"x");var m=/^\(\?([\w$]+)\)/.exec(i);if(m){l=t._clipDuplicates(l+m[1])}var h={};for(var v in u){if(u.hasOwnProperty(v)){var g=asXRegExp(u[v],c);h[v]={pattern:deanchor(g.source),names:g[a].captureNames||[]}}}var _=asXRegExp(i,c);var b=0;var w;var y=0;var S=[0];var E=_[a].captureNames||[];var T=_.source.replace(d,(function(t,a,d,i,p){var u=a||d;var l;var c;var m;if(u){var v;if(!h.hasOwnProperty(u)){throw new ReferenceError("Undefined property ".concat(t))}if(a){l=E[y];S[++y]=++b;c="(?<".concat(l||u,">")}else{c="(?:"}w=b;var g=h[u].pattern.replace(r,(function(t,a,r){if(a){l=h[u].names[b-w];++b;if(l){return"(?<".concat(l,">")}}else if(r){m=+r-1;return h[u].names[m]?"\\k<".concat(h[u].names[m],">"):"\\".concat(+r+w)}return t}));return(0,o["default"])(v="".concat(c)).call(v,g,")")}if(i){l=E[y];S[++y]=++b;if(l){return"(?<".concat(l,">")}}else if(p){m=+p-1;return E[m]?"\\k<".concat(E[m],">"):"\\".concat(S[+p])}return t}));return t(T,l)}};a["default"]=c;t.exports=a.default},4811:(t,a,r)=>{"use strict";var d=r(515);var i=r(4218);i(a,"__esModule",{value:true});a["default"]=void 0;var o=d(r(9188));var p=d(r(466));var u=d(r(6611));
*/var c=function _default(p){var o="xregexp";var a=/(\()(?!\?)|\\([1-9]\d*)|\\[\s\S]|\[(?:[^\\\]]|\\[\s\S])*\]/g;var t=p.union([/\({{([\w$]+)}}\)|{{([\w$]+)}}/,a],"g",{conjunction:"or"});function deanchor(p){var o=/^(?:\(\?:\))*\^/;var a=/\$(?:\(\?:\))*$/;if(o.test(p)&&a.test(p)&&a.test(p.replace(/\\[\s\S]/g,""))){return p.replace(o,"").replace(a,"")}return p}function asXRegExp(a,t){var b=t?"x":"";return p.isRegExp(a)?a[o]&&a[o].captureNames?a:p(a.source,b):p(a,b)}function interpolate(o){return o instanceof RegExp?o:p.escape(o)}function reduceToSubpatternsObject(p,o,a){p["subpattern".concat(a)]=o;return p}function embedSubpatternAfter(p,o,a){var t=o<a.length-1;return p+(t?"{{subpattern".concat(o,"}}"):"")}p.tag=function(o){return function(a){var t,b;for(var d=arguments.length,M=new Array(d>1?d-1:0),c=1;c<d;c++){M[c-1]=arguments[c]}var i=(0,z["default"])(t=(0,r["default"])(M).call(M,interpolate)).call(t,reduceToSubpatternsObject,{});var O=(0,r["default"])(b=a.raw).call(b,embedSubpatternAfter).join("");return p.build(O,i,o)}};p.build=function(b,r,z){z=z||"";var c=(0,M["default"])(z).call(z,"x");var i=/^\(\?([\w$]+)\)/.exec(b);if(i){z=p._clipDuplicates(z+i[1])}var O={};for(var u in r){if(r.hasOwnProperty(u)){var l=asXRegExp(r[u],c);O[u]={pattern:deanchor(l.source),names:l[o].captureNames||[]}}}var A=asXRegExp(b,c);var q=0;var m;var W=0;var h=[0];var R=A[o].captureNames||[];var g=A.source.replace(t,(function(p,o,t,b,M){var r=o||t;var z;var c;var i;if(r){var u;if(!O.hasOwnProperty(r)){throw new ReferenceError("Undefined property ".concat(p))}if(o){z=R[W];h[++W]=++q;c="(?<".concat(z||r,">")}else{c="(?:"}m=q;var l=O[r].pattern.replace(a,(function(p,o,a){if(o){z=O[r].names[q-m];++q;if(z){return"(?<".concat(z,">")}}else if(a){i=+a-1;return O[r].names[i]?"\\k<".concat(O[r].names[i],">"):"\\".concat(+a+m)}return p}));return(0,d["default"])(u="".concat(c)).call(u,l,")")}if(b){z=R[W];h[++W]=++q;if(z){return"(?<".concat(z,">")}}else if(M){i=+M-1;return R[i]?"\\k<".concat(R[i],">"):"\\".concat(h[+M])}return p}));return p(g,z)}};o["default"]=c;p.exports=o.default},4811:(p,o,a)=>{"use strict";var t=a(515);var b=a(4218);b(o,"__esModule",{value:true});o["default"]=void 0;var d=t(a(9188));var M=t(a(466));var r=t(a(6611));
/*!
* XRegExp.matchRecursive 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2009-present MIT License
*/var l=function _default(t){function row(t,a,r,d){return{name:t,value:a,start:r,end:d}}t.matchRecursive=function(a,r,d,i,l){i=i||"";l=l||{};var c=(0,u["default"])(i).call(i,"g");var m=(0,u["default"])(i).call(i,"y");var h=i.replace(/y/g,"");var v=l,g=v.escapeChar;var _=l.valueNames;var b=[];var w=0;var y=0;var S=0;var E=0;var T;var k;var O;var P;var x;r=t(r,h);d=t(d,h);if(g){var A,D;if(g.length>1){throw new Error("Cannot use more than one escape character")}g=t.escape(g);x=new RegExp((0,p["default"])(A=(0,p["default"])(D="(?:".concat(g,"[\\S\\s]|(?:(?!")).call(D,t.union([r,d],"",{conjunction:"or"}).source,")[^")).call(A,g,"])+)+"),i.replace(/[^imu]+/g,""))}while(true){if(g){S+=(t.exec(a,x,S,"sticky")||[""])[0].length}O=t.exec(a,r,S);P=t.exec(a,d,S);if(O&&P){if(O.index<=P.index){P=null}else{O=null}}if(O||P){y=(O||P).index;S=y+(O||P)[0].length}else if(!w){break}if(m&&!w&&y>E){break}if(O){if(!w){T=y;k=S}++w}else if(P&&w){if(!--w){if(_){if(_[0]&&T>E){b.push(row(_[0],(0,o["default"])(a).call(a,E,T),E,T))}if(_[1]){b.push(row(_[1],(0,o["default"])(a).call(a,T,k),T,k))}if(_[2]){b.push(row(_[2],(0,o["default"])(a).call(a,k,y),k,y))}if(_[3]){b.push(row(_[3],(0,o["default"])(a).call(a,y,S),y,S))}}else{b.push((0,o["default"])(a).call(a,k,y))}E=S;if(!c){break}}}else{throw new Error("Unbalanced delimiter found in string")}if(y===S){++S}}if(c&&!m&&_&&_[0]&&a.length>E){b.push(row(_[0],(0,o["default"])(a).call(a,E),E,a.length))}return b}};a["default"]=l;t.exports=a.default},3110:(t,a,r)=>{"use strict";var d=r(515);var i=r(4218);i(a,"__esModule",{value:true});a["default"]=void 0;var o=d(r(2038));var p=d(r(5401));var u=d(r(9640));var l=d(r(7652));var c=d(r(3361));var m=d(r(9188));var h=d(r(6611));var v=d(r(466));var g=d(r(669));function _createForOfIteratorHelper(t,a){var r;if(typeof l["default"]==="undefined"||(0,u["default"])(t)==null){if((0,p["default"])(t)||(r=_unsupportedIterableToArray(t))||a&&t&&typeof t.length==="number"){if(r)t=r;var d=0;var i=function F(){};return{s:i,n:function n(){if(d>=t.length)return{done:true};return{done:false,value:t[d++]}},e:function e(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c=true,m=false,h;return{s:function s(){r=(0,o["default"])(t)},n:function n(){var t=r.next();c=t.done;return t},e:function e(t){m=true;h=t},f:function f(){try{if(!c&&r["return"]!=null)r["return"]()}finally{if(m)throw h}}}}function _unsupportedIterableToArray(t,a){var r;if(!t)return;if(typeof t==="string")return _arrayLikeToArray(t,a);var d=(0,m["default"])(r=Object.prototype.toString.call(t)).call(r,8,-1);if(d==="Object"&&t.constructor)d=t.constructor.name;if(d==="Map"||d==="Set")return(0,c["default"])(t);if(d==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d))return _arrayLikeToArray(t,a)}function _arrayLikeToArray(t,a){if(a==null||a>t.length)a=t.length;for(var r=0,d=new Array(a);r<a;r++){d[r]=t[r]}return d}
*/var z=function _default(p){function row(p,o,a,t){return{name:p,value:o,start:a,end:t}}p.matchRecursive=function(o,a,t,b,z){b=b||"";z=z||{};var c=(0,r["default"])(b).call(b,"g");var i=(0,r["default"])(b).call(b,"y");var O=b.replace(/y/g,"");var u=z,l=u.escapeChar;var A=z.valueNames;var q=[];var m=0;var W=0;var h=0;var R=0;var g;var v;var L;var _;var N;a=p(a,O);t=p(t,O);if(l){var w,B;if(l.length>1){throw new Error("Cannot use more than one escape character")}l=p.escape(l);N=new RegExp((0,M["default"])(w=(0,M["default"])(B="(?:".concat(l,"[\\S\\s]|(?:(?!")).call(B,p.union([a,t],"",{conjunction:"or"}).source,")[^")).call(w,l,"])+)+"),b.replace(/[^imu]+/g,""))}while(true){if(l){h+=(p.exec(o,N,h,"sticky")||[""])[0].length}L=p.exec(o,a,h);_=p.exec(o,t,h);if(L&&_){if(L.index<=_.index){_=null}else{L=null}}if(L||_){W=(L||_).index;h=W+(L||_)[0].length}else if(!m){break}if(i&&!m&&W>R){break}if(L){if(!m){g=W;v=h}++m}else if(_&&m){if(!--m){if(A){if(A[0]&&g>R){q.push(row(A[0],(0,d["default"])(o).call(o,R,g),R,g))}if(A[1]){q.push(row(A[1],(0,d["default"])(o).call(o,g,v),g,v))}if(A[2]){q.push(row(A[2],(0,d["default"])(o).call(o,v,W),v,W))}if(A[3]){q.push(row(A[3],(0,d["default"])(o).call(o,W,h),W,h))}}else{q.push((0,d["default"])(o).call(o,v,W))}R=h;if(!c){break}}}else{throw new Error("Unbalanced delimiter found in string")}if(W===h){++h}}if(c&&!i&&A&&A[0]&&o.length>R){q.push(row(A[0],(0,d["default"])(o).call(o,R),R,o.length))}return q}};o["default"]=z;p.exports=o.default},3110:(p,o,a)=>{"use strict";var t=a(515);var b=a(4218);b(o,"__esModule",{value:true});o["default"]=void 0;var d=t(a(2038));var M=t(a(5401));var r=t(a(9640));var z=t(a(7652));var c=t(a(3361));var i=t(a(9188));var O=t(a(6611));var u=t(a(466));var l=t(a(669));function _createForOfIteratorHelper(p,o){var a;if(typeof z["default"]==="undefined"||(0,r["default"])(p)==null){if((0,M["default"])(p)||(a=_unsupportedIterableToArray(p))||o&&p&&typeof p.length==="number"){if(a)p=a;var t=0;var b=function F(){};return{s:b,n:function n(){if(t>=p.length)return{done:true};return{done:false,value:p[t++]}},e:function e(p){throw p},f:b}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c=true,i=false,O;return{s:function s(){a=(0,d["default"])(p)},n:function n(){var p=a.next();c=p.done;return p},e:function e(p){i=true;O=p},f:function f(){try{if(!c&&a["return"]!=null)a["return"]()}finally{if(i)throw O}}}}function _unsupportedIterableToArray(p,o){var a;if(!p)return;if(typeof p==="string")return _arrayLikeToArray(p,o);var t=(0,i["default"])(a=Object.prototype.toString.call(p)).call(a,8,-1);if(t==="Object"&&p.constructor)t=p.constructor.name;if(t==="Map"||t==="Set")return(0,c["default"])(p);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return _arrayLikeToArray(p,o)}function _arrayLikeToArray(p,o){if(o==null||o>p.length)o=p.length;for(var a=0,t=new Array(o);a<o;a++){t[a]=p[a]}return t}
/*!
* XRegExp Unicode Base 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2008-present MIT License
*/var _=function _default(t){var a={};var r=t._dec;var d=t._hex;var i=t._pad4;function normalize(t){return t.replace(/[- _]+/g,"").toLowerCase()}function charCode(t){var a=/^\\[xu](.+)/.exec(t);return a?r(a[1]):t.charCodeAt(t[0]==="\\"?1:0)}function invertBmp(a){var r="";var o=-1;(0,g["default"])(t).call(t,a,/(\\x..|\\u....|\\?[\s\S])(?:-(\\x..|\\u....|\\?[\s\S]))?/,(function(t){var a=charCode(t[1]);if(a>o+1){r+="\\u".concat(i(d(o+1)));if(a>o+2){r+="-\\u".concat(i(d(a-1)))}}o=charCode(t[2]||t[1])}));if(o<65535){r+="\\u".concat(i(d(o+1)));if(o<65534){r+="-\\uFFFF"}}return r}function cacheInvertedBmp(t){var r="b!";return a[t][r]||(a[t][r]=invertBmp(a[t].bmp))}function buildAstral(t,r){var d=a[t];var i="";if(d.bmp&&!d.isBmpLast){var o;i=(0,v["default"])(o="[".concat(d.bmp,"]")).call(o,d.astral?"|":"")}if(d.astral){i+=d.astral}if(d.isBmpLast&&d.bmp){var p;i+=(0,v["default"])(p="".concat(d.astral?"|":"","[")).call(p,d.bmp,"]")}return r?"(?:(?!".concat(i,")(?:[\ud800-\udbff][\udc00-\udfff]|[\0-￿]))"):"(?:".concat(i,")")}function cacheAstral(t,r){var d=r?"a!":"a=";return a[t][d]||(a[t][d]=buildAstral(t,r))}t.addToken(/\\([pP])(?:{(\^?)([^}]*)}|([A-Za-z]))/,(function(t,r,d){var i="Invalid double negation ";var o="Unknown Unicode token ";var p="Unicode token missing data ";var u="Astral mode required for Unicode token ";var l="Astral mode does not support Unicode tokens within character classes";var c=t[1]==="P"||!!t[2];var m=(0,h["default"])(d).call(d,"A");var g=normalize(t[4]||t[3]);var _=a[g];if(t[1]==="P"&&t[2]){throw new SyntaxError(i+t[0])}if(!a.hasOwnProperty(g)){throw new SyntaxError(o+t[0])}if(_.inverseOf){g=normalize(_.inverseOf);if(!a.hasOwnProperty(g)){var b;throw new ReferenceError((0,v["default"])(b="".concat(p+t[0]," -> ")).call(b,_.inverseOf))}_=a[g];c=!c}if(!(_.bmp||m)){throw new SyntaxError(u+t[0])}if(m){if(r==="class"){throw new SyntaxError(l)}return cacheAstral(g,c)}return r==="class"?c?cacheInvertedBmp(g):_.bmp:"".concat((c?"[^":"[")+_.bmp,"]")}),{scope:"all",optionalFlags:"A",leadChar:"\\"});t.addUnicodeData=function(r){var d="Unicode token requires name";var i="Unicode token has no character data ";var o=_createForOfIteratorHelper(r),p;try{for(o.s();!(p=o.n()).done;){var u=p.value;if(!u.name){throw new Error(d)}if(!(u.inverseOf||u.bmp||u.astral)){throw new Error(i+u.name)}a[normalize(u.name)]=u;if(u.alias){a[normalize(u.alias)]=u}}}catch(t){o.e(t)}finally{o.f()}t.cache.flush("patterns")};t._getUnicodeProperty=function(t){var r=normalize(t);return a[r]}};a["default"]=_;t.exports=a.default},4686:(t,a,r)=>{"use strict";var d=r(515);var i=r(4218);i(a,"__esModule",{value:true});a["default"]=void 0;var o=d(r(5826));
*/var A=function _default(p){var o={};var a=p._dec;var t=p._hex;var b=p._pad4;function normalize(p){return p.replace(/[- _]+/g,"").toLowerCase()}function charCode(p){var o=/^\\[xu](.+)/.exec(p);return o?a(o[1]):p.charCodeAt(p[0]==="\\"?1:0)}function invertBmp(o){var a="";var d=-1;(0,l["default"])(p).call(p,o,/(\\x..|\\u....|\\?[\s\S])(?:-(\\x..|\\u....|\\?[\s\S]))?/,(function(p){var o=charCode(p[1]);if(o>d+1){a+="\\u".concat(b(t(d+1)));if(o>d+2){a+="-\\u".concat(b(t(o-1)))}}d=charCode(p[2]||p[1])}));if(d<65535){a+="\\u".concat(b(t(d+1)));if(d<65534){a+="-\\uFFFF"}}return a}function cacheInvertedBmp(p){var a="b!";return o[p][a]||(o[p][a]=invertBmp(o[p].bmp))}function buildAstral(p,a){var t=o[p];var b="";if(t.bmp&&!t.isBmpLast){var d;b=(0,u["default"])(d="[".concat(t.bmp,"]")).call(d,t.astral?"|":"")}if(t.astral){b+=t.astral}if(t.isBmpLast&&t.bmp){var M;b+=(0,u["default"])(M="".concat(t.astral?"|":"","[")).call(M,t.bmp,"]")}return a?"(?:(?!".concat(b,")(?:[\ud800-\udbff][\udc00-\udfff]|[\0-￿]))"):"(?:".concat(b,")")}function cacheAstral(p,a){var t=a?"a!":"a=";return o[p][t]||(o[p][t]=buildAstral(p,a))}p.addToken(/\\([pP])(?:{(\^?)([^}]*)}|([A-Za-z]))/,(function(p,a,t){var b="Invalid double negation ";var d="Unknown Unicode token ";var M="Unicode token missing data ";var r="Astral mode required for Unicode token ";var z="Astral mode does not support Unicode tokens within character classes";var c=p[1]==="P"||!!p[2];var i=(0,O["default"])(t).call(t,"A");var l=normalize(p[4]||p[3]);var A=o[l];if(p[1]==="P"&&p[2]){throw new SyntaxError(b+p[0])}if(!o.hasOwnProperty(l)){throw new SyntaxError(d+p[0])}if(A.inverseOf){l=normalize(A.inverseOf);if(!o.hasOwnProperty(l)){var q;throw new ReferenceError((0,u["default"])(q="".concat(M+p[0]," -> ")).call(q,A.inverseOf))}A=o[l];c=!c}if(!(A.bmp||i)){throw new SyntaxError(r+p[0])}if(i){if(a==="class"){throw new SyntaxError(z)}return cacheAstral(l,c)}return a==="class"?c?cacheInvertedBmp(l):A.bmp:"".concat((c?"[^":"[")+A.bmp,"]")}),{scope:"all",optionalFlags:"A",leadChar:"\\"});p.addUnicodeData=function(a){var t="Unicode token requires name";var b="Unicode token has no character data ";var d=_createForOfIteratorHelper(a),M;try{for(d.s();!(M=d.n()).done;){var r=M.value;if(!r.name){throw new Error(t)}if(!(r.inverseOf||r.bmp||r.astral)){throw new Error(b+r.name)}o[normalize(r.name)]=r;if(r.alias){o[normalize(r.alias)]=r}}}catch(p){d.e(p)}finally{d.f()}p.cache.flush("patterns")};p._getUnicodeProperty=function(p){var a=normalize(p);return o[a]}};o["default"]=A;p.exports=o.default},4686:(p,o,a)=>{"use strict";var t=a(515);var b=a(4218);b(o,"__esModule",{value:true});o["default"]=void 0;var d=t(a(5826));
/*!
* XRegExp Unicode Blocks 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2010-present MIT License
* Unicode data by Mathias Bynens <mathiasbynens.be>
*/var p=function _default(t){if(!t.addUnicodeData){throw new ReferenceError("Unicode Base must be loaded before Unicode Blocks")}t.addUnicodeData(o["default"])};a["default"]=p;t.exports=a.default},1996:(t,a,r)=>{"use strict";var d=r(515);var i=r(4218);i(a,"__esModule",{value:true});a["default"]=void 0;var o=d(r(8537));
*/var M=function _default(p){if(!p.addUnicodeData){throw new ReferenceError("Unicode Base must be loaded before Unicode Blocks")}p.addUnicodeData(d["default"])};o["default"]=M;p.exports=o.default},1996:(p,o,a)=>{"use strict";var t=a(515);var b=a(4218);b(o,"__esModule",{value:true});o["default"]=void 0;var d=t(a(8537));
/*!
* XRegExp Unicode Categories 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2010-present MIT License
* Unicode data by Mathias Bynens <mathiasbynens.be>
*/var p=function _default(t){if(!t.addUnicodeData){throw new ReferenceError("Unicode Base must be loaded before Unicode Categories")}t.addUnicodeData(o["default"])};a["default"]=p;t.exports=a.default},9250:(t,a,r)=>{"use strict";var d=r(515);var i=r(4218);i(a,"__esModule",{value:true});a["default"]=void 0;var o=d(r(616));
*/var M=function _default(p){if(!p.addUnicodeData){throw new ReferenceError("Unicode Base must be loaded before Unicode Categories")}p.addUnicodeData(d["default"])};o["default"]=M;p.exports=o.default},9250:(p,o,a)=>{"use strict";var t=a(515);var b=a(4218);b(o,"__esModule",{value:true});o["default"]=void 0;var d=t(a(616));
/*!
* XRegExp Unicode Properties 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2012-present MIT License
* Unicode data by Mathias Bynens <mathiasbynens.be>
*/var p=function _default(t){if(!t.addUnicodeData){throw new ReferenceError("Unicode Base must be loaded before Unicode Properties")}var a=o["default"];a.push({name:"Assigned",inverseOf:"Cn"});t.addUnicodeData(a)};a["default"]=p;t.exports=a.default},5715:(t,a,r)=>{"use strict";var d=r(515);var i=r(4218);i(a,"__esModule",{value:true});a["default"]=void 0;var o=d(r(2524));
*/var M=function _default(p){if(!p.addUnicodeData){throw new ReferenceError("Unicode Base must be loaded before Unicode Properties")}var o=d["default"];o.push({name:"Assigned",inverseOf:"Cn"});p.addUnicodeData(o)};o["default"]=M;p.exports=o.default},5715:(p,o,a)=>{"use strict";var t=a(515);var b=a(4218);b(o,"__esModule",{value:true});o["default"]=void 0;var d=t(a(2524));
/*!
* XRegExp Unicode Scripts 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2010-present MIT License
* Unicode data by Mathias Bynens <mathiasbynens.be>
*/var p=function _default(t){if(!t.addUnicodeData){throw new ReferenceError("Unicode Base must be loaded before Unicode Scripts")}t.addUnicodeData(o["default"])};a["default"]=p;t.exports=a.default},7750:(t,a,r)=>{"use strict";var d=r(515);var i=r(4218);i(a,"__esModule",{value:true});a["default"]=void 0;var o=d(r(8612));var p=d(r(380));var u=d(r(4811));var l=d(r(3110));var c=d(r(4686));var m=d(r(1996));var h=d(r(9250));var v=d(r(5715));(0,p["default"])(o["default"]);(0,u["default"])(o["default"]);(0,l["default"])(o["default"]);(0,c["default"])(o["default"]);(0,m["default"])(o["default"]);(0,h["default"])(o["default"]);(0,v["default"])(o["default"]);var g=o["default"];a["default"]=g;t.exports=a.default},8612:(t,a,r)=>{"use strict";var d=r(515);var i=r(4218);i(a,"__esModule",{value:true});a["default"]=void 0;var o=d(r(2038));var p=d(r(5401));var u=d(r(9640));var l=d(r(7652));var c=d(r(3361));var m=d(r(466));var h=d(r(3781));var v=d(r(6761));var g=d(r(8135));var _=d(r(669));var b=d(r(6611));var w=d(r(1308));var y=d(r(9188));var S=d(r(8979));var E=d(r(3046));function _createForOfIteratorHelper(t,a){var r;if(typeof l["default"]==="undefined"||(0,u["default"])(t)==null){if((0,p["default"])(t)||(r=_unsupportedIterableToArray(t))||a&&t&&typeof t.length==="number"){if(r)t=r;var d=0;var i=function F(){};return{s:i,n:function n(){if(d>=t.length)return{done:true};return{done:false,value:t[d++]}},e:function e(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c=true,m=false,h;return{s:function s(){r=(0,o["default"])(t)},n:function n(){var t=r.next();c=t.done;return t},e:function e(t){m=true;h=t},f:function f(){try{if(!c&&r["return"]!=null)r["return"]()}finally{if(m)throw h}}}}function _unsupportedIterableToArray(t,a){var r;if(!t)return;if(typeof t==="string")return _arrayLikeToArray(t,a);var d=(0,y["default"])(r=Object.prototype.toString.call(t)).call(r,8,-1);if(d==="Object"&&t.constructor)d=t.constructor.name;if(d==="Map"||d==="Set")return(0,c["default"])(t);if(d==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d))return _arrayLikeToArray(t,a)}function _arrayLikeToArray(t,a){if(a==null||a>t.length)a=t.length;for(var r=0,d=new Array(a);r<a;r++){d[r]=t[r]}return d}
*/var M=function _default(p){if(!p.addUnicodeData){throw new ReferenceError("Unicode Base must be loaded before Unicode Scripts")}p.addUnicodeData(d["default"])};o["default"]=M;p.exports=o.default},7750:(p,o,a)=>{"use strict";var t=a(515);var b=a(4218);b(o,"__esModule",{value:true});o["default"]=void 0;var d=t(a(8612));var M=t(a(380));var r=t(a(4811));var z=t(a(3110));var c=t(a(4686));var i=t(a(1996));var O=t(a(9250));var u=t(a(5715));(0,M["default"])(d["default"]);(0,r["default"])(d["default"]);(0,z["default"])(d["default"]);(0,c["default"])(d["default"]);(0,i["default"])(d["default"]);(0,O["default"])(d["default"]);(0,u["default"])(d["default"]);var l=d["default"];o["default"]=l;p.exports=o.default},8612:(p,o,a)=>{"use strict";var t=a(515);var b=a(4218);b(o,"__esModule",{value:true});o["default"]=void 0;var d=t(a(2038));var M=t(a(5401));var r=t(a(9640));var z=t(a(7652));var c=t(a(3361));var i=t(a(466));var O=t(a(3781));var u=t(a(6761));var l=t(a(8135));var A=t(a(669));var q=t(a(6611));var m=t(a(1308));var W=t(a(9188));var h=t(a(8979));var R=t(a(3046));function _createForOfIteratorHelper(p,o){var a;if(typeof z["default"]==="undefined"||(0,r["default"])(p)==null){if((0,M["default"])(p)||(a=_unsupportedIterableToArray(p))||o&&p&&typeof p.length==="number"){if(a)p=a;var t=0;var b=function F(){};return{s:b,n:function n(){if(t>=p.length)return{done:true};return{done:false,value:p[t++]}},e:function e(p){throw p},f:b}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c=true,i=false,O;return{s:function s(){a=(0,d["default"])(p)},n:function n(){var p=a.next();c=p.done;return p},e:function e(p){i=true;O=p},f:function f(){try{if(!c&&a["return"]!=null)a["return"]()}finally{if(i)throw O}}}}function _unsupportedIterableToArray(p,o){var a;if(!p)return;if(typeof p==="string")return _arrayLikeToArray(p,o);var t=(0,W["default"])(a=Object.prototype.toString.call(p)).call(a,8,-1);if(t==="Object"&&p.constructor)t=p.constructor.name;if(t==="Map"||t==="Set")return(0,c["default"])(p);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return _arrayLikeToArray(p,o)}function _arrayLikeToArray(p,o){if(o==null||o>p.length)o=p.length;for(var a=0,t=new Array(o);a<o;a++){t[a]=p[a]}return t}
/*!
* XRegExp 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2007-present MIT License
*/var T="xregexp";var k={astral:false,namespacing:false};var O={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split};var P={};var x={};var A={};var D=[];var N="default";var C="class";var I={default:/\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9]\d*|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|\(\?(?:[:=!]|<[=!])|[?*+]\?|{\d+(?:,\d*)?}\??|[\s\S]/,class:/\\(?:[0-3][0-7]{0,2}|[4-7][0-7]?|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|[\s\S]/};var R=/\$(?:{([\w$]+)}|<([\w$]+)>|(\d\d?|[\s\S]))/g;var L=O.exec.call(/()??/,"")[1]===undefined;var M=(0,E["default"])(/x/)!==undefined;var G={},V=G.toString;function hasNativeFlag(t){var a=true;try{new RegExp("",t);if(t==="y"){var r=function(){return"gy"}();var d=".a".replace(new RegExp("a",r),".")==="..";if(d){a=false}}}catch(t){a=false}return a}var U=hasNativeFlag("u");var j=hasNativeFlag("y");var B={g:true,i:true,m:true,u:U,y:j};function augment(t,a,r,d,i){var o;t[T]={captureNames:a};if(i){return t}if(t.__proto__){t.__proto__=XRegExp.prototype}else{for(var p in XRegExp.prototype){t[p]=XRegExp.prototype[p]}}t[T].source=r;t[T].flags=d?(0,S["default"])(o=d.split("")).call(o).join(""):d;return t}function clipDuplicates(t){return O.replace.call(t,/([\s\S])(?=[\s\S]*\1)/g,"")}function copyRegex(t,a){var r;if(!XRegExp.isRegExp(t)){throw new TypeError("Type RegExp expected")}var d=t[T]||{};var i=getNativeFlags(t);var o="";var p="";var u=null;var l=null;a=a||{};if(a.removeG){p+="g"}if(a.removeY){p+="y"}if(p){i=O.replace.call(i,new RegExp("[".concat(p,"]+"),"g"),"")}if(a.addG){o+="g"}if(a.addY){o+="y"}if(o){i=clipDuplicates(i+o)}if(!a.isInternalOnly){if(d.source!==undefined){u=d.source}if((0,E["default"])(d)!=null){l=o?clipDuplicates((0,E["default"])(d)+o):(0,E["default"])(d)}}t=augment(new RegExp(a.source||t.source,i),hasNamedCapture(t)?(0,y["default"])(r=d.captureNames).call(r,0):null,u,l,a.isInternalOnly);return t}function dec(t){return(0,w["default"])(t,16)}function getContextualTokenSeparator(t,a,r){if(t.input[t.index-1]==="("||t.input[t.index+t[0].length]===")"||t.input[t.index-1]==="|"||t.input[t.index+t[0].length]==="|"||t.index<1||t.index+t[0].length>=t.input.length||O.test.call(/^\(\?[:=!]/,t.input.substr(t.index-3,3))||isQuantifierNext(t.input,t.index+t[0].length,r)){return""}return"(?:)"}function getNativeFlags(t){return M?(0,E["default"])(t):O.exec.call(/\/([a-z]*)$/i,RegExp.prototype.toString.call(t))[1]}function hasNamedCapture(t){return!!(t[T]&&t[T].captureNames)}function hex(t){return(0,w["default"])(t,10).toString(16)}function isQuantifierNext(t,a,r){var d="\\(\\?#[^)]*\\)";var i="#[^#\\n]*";var o="[?*+]|{\\d+(?:,\\d*)?}";return O.test.call((0,b["default"])(r).call(r,"x")?/^(?:\s|#[^#\n]*|\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/:/^(?:\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/,(0,y["default"])(t).call(t,a))}function isType(t,a){return V.call(t)==="[object ".concat(a,"]")}function pad4(t){while(t.length<4){t="0".concat(t)}return t}function prepareFlags(t,a){if(clipDuplicates(a)!==a){throw new SyntaxError("Invalid duplicate regex flag ".concat(a))}t=O.replace.call(t,/^\(\?([\w$]+)\)/,(function(t,r){if(O.test.call(/[gy]/,r)){throw new SyntaxError("Cannot use flag g or y in mode modifier ".concat(t))}a=clipDuplicates(a+r);return""}));var r=_createForOfIteratorHelper(a),d;try{for(r.s();!(d=r.n()).done;){var i=d.value;if(!B[i]){throw new SyntaxError("Unknown regex flag ".concat(i))}}}catch(t){r.e(t)}finally{r.f()}return{pattern:t,flags:a}}function prepareOptions(t){var a={};if(isType(t,"String")){(0,_["default"])(XRegExp).call(XRegExp,t,/[^\s,]+/,(function(t){a[t]=true}));return a}return t}function registerFlag(t){if(!/^[\w$]$/.test(t)){throw new Error("Flag must be a single character A-Za-z0-9_$")}B[t]=true}function runTokens(t,a,r,d,i){var o=D.length;var p=t[r];var u=null;var l;var c;while(o--){c=D[o];if(c.leadChar&&c.leadChar!==p||c.scope!==d&&c.scope!=="all"||c.flag&&!(0,b["default"])(a).call(a,c.flag)){continue}l=XRegExp.exec(t,c.regex,r,"sticky");if(l){u={matchLength:l[0].length,output:c.handler.call(i,l,d,a),reparse:c.reparse};break}}return u}function setAstral(t){k.astral=t}function setNamespacing(t){k.namespacing=t}function toObject(t){if(t==null){throw new TypeError("Cannot convert null or undefined to object")}return t}function XRegExp(t,a){if(XRegExp.isRegExp(t)){if(a!==undefined){throw new TypeError("Cannot supply flags when copying a RegExp")}return copyRegex(t)}t=t===undefined?"":String(t);a=a===undefined?"":String(a);if(XRegExp.isInstalled("astral")&&!(0,b["default"])(a).call(a,"A")){a+="A"}if(!A[t]){A[t]={}}if(!A[t][a]){var r={hasNamedCapture:false,captureNames:[]};var d=N;var i="";var o=0;var p;var u=prepareFlags(t,a);var l=u.pattern;var c=(0,E["default"])(u);while(o<l.length){do{p=runTokens(l,c,o,d,r);if(p&&p.reparse){l=(0,y["default"])(l).call(l,0,o)+p.output+(0,y["default"])(l).call(l,o+p.matchLength)}}while(p&&p.reparsLine truncated
*/var g="xregexp";var v={astral:false,namespacing:false};var L={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split};var _={};var N={};var w={};var B=[];var T="default";var y="class";var E={default:/\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9]\d*|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|\(\?(?:[:=!]|<[=!])|[?*+]\?|{\d+(?:,\d*)?}\??|[\s\S]/,class:/\\(?:[0-3][0-7]{0,2}|[4-7][0-7]?|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|[\s\S]/};var S=/\$(?:{([\w$]+)}|<([\w$]+)>|(\d\d?|[\s\S]))/g;var X=L.exec.call(/()??/,"")[1]===undefined;var k=(0,R["default"])(/x/)!==undefined;var P={},C=P.toString;function hasNativeFlag(p){var o=true;try{new RegExp("",p);if(p==="y"){var a=function(){return"gy"}();var t=".a".replace(new RegExp("a",a),".")==="..";if(t){o=false}}}catch(p){o=false}return o}var D=hasNativeFlag("u");var x=hasNativeFlag("y");var I={g:true,i:true,m:true,u:D,y:x};function augment(p,o,a,t,b){var d;p[g]={captureNames:o};if(b){return p}if(p.__proto__){p.__proto__=XRegExp.prototype}else{for(var M in XRegExp.prototype){p[M]=XRegExp.prototype[M]}}p[g].source=a;p[g].flags=t?(0,h["default"])(d=t.split("")).call(d).join(""):t;return p}function clipDuplicates(p){return L.replace.call(p,/([\s\S])(?=[\s\S]*\1)/g,"")}function copyRegex(p,o){var a;if(!XRegExp.isRegExp(p)){throw new TypeError("Type RegExp expected")}var t=p[g]||{};var b=getNativeFlags(p);var d="";var M="";var r=null;var z=null;o=o||{};if(o.removeG){M+="g"}if(o.removeY){M+="y"}if(M){b=L.replace.call(b,new RegExp("[".concat(M,"]+"),"g"),"")}if(o.addG){d+="g"}if(o.addY){d+="y"}if(d){b=clipDuplicates(b+d)}if(!o.isInternalOnly){if(t.source!==undefined){r=t.source}if((0,R["default"])(t)!=null){z=d?clipDuplicates((0,R["default"])(t)+d):(0,R["default"])(t)}}p=augment(new RegExp(o.source||p.source,b),hasNamedCapture(p)?(0,W["default"])(a=t.captureNames).call(a,0):null,r,z,o.isInternalOnly);return p}function dec(p){return(0,m["default"])(p,16)}function getContextualTokenSeparator(p,o,a){if(p.input[p.index-1]==="("||p.input[p.index+p[0].length]===")"||p.input[p.index-1]==="|"||p.input[p.index+p[0].length]==="|"||p.index<1||p.index+p[0].length>=p.input.length||L.test.call(/^\(\?[:=!]/,p.input.substr(p.index-3,3))||isQuantifierNext(p.input,p.index+p[0].length,a)){return""}return"(?:)"}function getNativeFlags(p){return k?(0,R["default"])(p):L.exec.call(/\/([a-z]*)$/i,RegExp.prototype.toString.call(p))[1]}function hasNamedCapture(p){return!!(p[g]&&p[g].captureNames)}function hex(p){return(0,m["default"])(p,10).toString(16)}function isQuantifierNext(p,o,a){var t="\\(\\?#[^)]*\\)";var b="#[^#\\n]*";var d="[?*+]|{\\d+(?:,\\d*)?}";return L.test.call((0,q["default"])(a).call(a,"x")?/^(?:\s|#[^#\n]*|\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/:/^(?:\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/,(0,W["default"])(p).call(p,o))}function isType(p,o){return C.call(p)==="[object ".concat(o,"]")}function pad4(p){while(p.length<4){p="0".concat(p)}return p}function prepareFlags(p,o){if(clipDuplicates(o)!==o){throw new SyntaxError("Invalid duplicate regex flag ".concat(o))}p=L.replace.call(p,/^\(\?([\w$]+)\)/,(function(p,a){if(L.test.call(/[gy]/,a)){throw new SyntaxError("Cannot use flag g or y in mode modifier ".concat(p))}o=clipDuplicates(o+a);return""}));var a=_createForOfIteratorHelper(o),t;try{for(a.s();!(t=a.n()).done;){var b=t.value;if(!I[b]){throw new SyntaxError("Unknown regex flag ".concat(b))}}}catch(p){a.e(p)}finally{a.f()}return{pattern:p,flags:o}}function prepareOptions(p){var o={};if(isType(p,"String")){(0,A["default"])(XRegExp).call(XRegExp,p,/[^\s,]+/,(function(p){o[p]=true}));return o}return p}function registerFlag(p){if(!/^[\w$]$/.test(p)){throw new Error("Flag must be a single character A-Za-z0-9_$")}I[p]=true}function runTokens(p,o,a,t,b){var d=B.length;var M=p[a];var r=null;var z;var c;while(d--){c=B[d];if(c.leadChar&&c.leadChar!==M||c.scope!==t&&c.scope!=="all"||c.flag&&!(0,q["default"])(o).call(o,c.flag)){continue}z=XRegExp.exec(p,c.regex,a,"sticky");if(z){r={matchLength:z[0].length,output:c.handler.call(b,z,t,o),reparse:c.reparse};break}}return r}function setAstral(p){v.astral=p}function setNamespacing(p){v.namespacing=p}function toObject(p){if(p==null){throw new TypeError("Cannot convert null or undefined to object")}return p}function XRegExp(p,o){if(XRegExp.isRegExp(p)){if(o!==undefined){throw new TypeError("Cannot supply flags when copying a RegExp")}return copyRegex(p)}p=p===undefined?"":String(p);o=o===undefined?"":String(o);if(XRegExp.isInstalled("astral")&&!(0,q["default"])(o).call(o,"A")){o+="A"}if(!w[p]){w[p]={}}if(!w[p][o]){var a={hasNamedCapture:false,captureNames:[]};var t=T;var b="";var d=0;var M;var r=prepareFlags(p,o);var z=r.pattern;var c=(0,R["default"])(r);while(d<z.length){do{M=runTokens(z,c,d,t,a);if(M&&M.reparse){z=(0,W["default"])(z).call(z,0,d)+M.output+(0,W["default"])(z).call(z,d+M.matchLength)}}while(M&&M.reparsLine truncated
//# sourceMappingURL=index.js.map
Generated Vendored
+1 -1
View File
@@ -1 +1 @@
{"version":3,"sources":["../webpack:/docker-metadata-action/node_modules/@actions/core/lib/command.js","../webpack:/docker-metadata-action/node_modules/@actions/core/lib/core.js","../webpack:/docker-metadata-action/node_modules/@actions/core/lib/file-command.js","../webpack:/docker-metadata-action/node_modules/@actions/core/lib/oidc-utils.js","../webpack:/docker-metadata-action/node_modules/@actions/core/lib/utils.js","../webpack:/docker-metadata-action/node_modules/@actions/github/lib/context.js","../webpack:/docker-metadata-action/node_modules/@actions/github/lib/github.js","../webpack:/docker-metadata-action/node_modules/@actions/github/lib/internal/utils.js","../webpack:/docker-metadata-action/node_modules/@actions/github/lib/utils.js","../webpack:/docker-metadata-action/node_modules/@actions/http-client/auth.js","../webpack:/docker-metadata-action/node_modules/@actions/http-client/index.js","../webpack:/docker-metadata-action/node_modules/@actions/http-client/proxy.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/array/from.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/array/is-array.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/instance/flags.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/instance/for-each.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/instance/includes.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/instance/index-of.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/instance/map.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/instance/reduce.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/instance/slice.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/instance/sort.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/object/create.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/parse-int.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/symbol.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js/array/from.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js/array/is-array.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js/get-iterator-method.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js/get-iterator.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js/instance/slice.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js/symbol.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/helpers/arrayLikeToArray.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/helpers/arrayWithHoles.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/helpers/iterableToArrayLimit.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/helpers/nonIterableRest.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/helpers/slicedToArray.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/helpers/unsupportedIterableToArray.js","../webpack:/docker-metadata-action/node_modules/@octokit/auth-token/dist-node/index.js","../webpack:/docker-metadata-action/node_modules/@octokit/core/dist-node/index.js","../webpack:/docker-metadata-action/node_modules/@octokit/endpoint/dist-node/index.js","../webpack:/docker-metadata-action/node_modules/@octokit/graphql/dist-node/index.js","../webpack:/docker-metadata-action/node_modules/@octokit/graphql/node_modules/@octokit/request-error/dist-node/index.js","../webpack:/docker-metadata-action/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-node/index.js","../webpack:/docker-metadata-action/node_modules/@octokit/plugin-paginate-rest/dist-node/index.js","../webpack:/docker-metadata-action/node_modules/@octokit/plugin-rest-endpoint-methods/dist-node/index.js","../webpack:/docker-metadata-action/node_modules/@octokit/request/dist-node/index.js","../webpack:/docker-metadata-action/node_modules/@octokit/request/node_modules/@octokit/request-error/dist-node/index.js","../webpack:/docker-metadata-action/node_modules/@renovate/pep440/index.js","../webpack:/docker-metadata-action/node_modLine truncated
{"version":3,"sources":["../webpack:/docker-metadata-action/node_modules/@actions/core/lib/command.js","../webpack:/docker-metadata-action/node_modules/@actions/core/lib/core.js","../webpack:/docker-metadata-action/node_modules/@actions/core/lib/file-command.js","../webpack:/docker-metadata-action/node_modules/@actions/core/lib/oidc-utils.js","../webpack:/docker-metadata-action/node_modules/@actions/core/lib/path-utils.js","../webpack:/docker-metadata-action/node_modules/@actions/core/lib/summary.js","../webpack:/docker-metadata-action/node_modules/@actions/core/lib/utils.js","../webpack:/docker-metadata-action/node_modules/@actions/github/lib/context.js","../webpack:/docker-metadata-action/node_modules/@actions/github/lib/github.js","../webpack:/docker-metadata-action/node_modules/@actions/github/lib/internal/utils.js","../webpack:/docker-metadata-action/node_modules/@actions/github/lib/utils.js","../webpack:/docker-metadata-action/node_modules/@actions/http-client/lib/auth.js","../webpack:/docker-metadata-action/node_modules/@actions/http-client/lib/index.js","../webpack:/docker-metadata-action/node_modules/@actions/http-client/lib/proxy.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/array/from.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/array/is-array.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/instance/flags.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/instance/for-each.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/instance/includes.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/instance/index-of.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/instance/map.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/instance/reduce.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/instance/slice.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/instance/sort.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/object/create.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/parse-int.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js-stable/symbol.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js/array/from.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js/array/is-array.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js/get-iterator-method.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js/get-iterator.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js/instance/slice.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/core-js/symbol.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/helpers/arrayLikeToArray.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/helpers/arrayWithHoles.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/helpers/interopRequireDefault.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/helpers/iterableToArrayLimit.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/helpers/nonIterableRest.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/helpers/slicedToArray.js","../webpack:/docker-metadata-action/node_modules/@babel/runtime-corejs3/helpers/unsupportedIterableToArray.js","../webpack:/docker-metadata-action/node_modules/@octokit/auth-token/dist-node/index.js","../webpack:/docker-metadata-action/node_modules/@octokit/core/dist-node/index.js","../webpack:/docker-metadata-action/node_modules/@octokit/endpoint/dist-node/index.js","../webpack:/docker-metadata-action/node_modules/@octokit/graphql/dist-node/index.js","../webpack:/docker-metadata-action/node_modules/@octokit/graphql/node_modules/@octokit/request-error/dist-node/index.js","../webpack:/docker-metadata-action/node_modules/@octokit/graphql/node_modules/@octokit/request/dist-node/index.js","../webpack:/docker-metadata-action/node_modules/@octokit/plugin-paginate-rest/dist-node/index.js","../webpack:/docker-metadata-action/node_modules/@octokit/plugin-rest-endpoint-methods/dist-node/index.js","../webpack:/docker-metadata-action/node_modules/@octokit/request/dist-node/index.js","../webpack:/docker-metadata-action/node_modules/@octokit/request/nodLine truncated
Generated Vendored
+36
View File
@@ -627,6 +627,29 @@ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
moment-timezone
MIT
The MIT License (MIT)
Copyright (c) JS Foundation and other contributors
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
node-fetch
MIT
The MIT License (MIT)
@@ -762,6 +785,19 @@ Permission to use, copy, modify, and/or distribute this software for any purpose
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
uuid
MIT
The MIT License (MIT)
Copyright (c) 2010-2020 Robert Kieffer and other contributors
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
webidl-conversions
BSD-2-Clause
# The BSD 2-Clause License
+5 -4
View File
@@ -29,12 +29,13 @@
],
"license": "Apache-2.0",
"dependencies": {
"@actions/core": "^1.6.0",
"@actions/github": "^5.0.1",
"@actions/core": "^1.10.0",
"@actions/github": "^5.1.1",
"@renovate/pep440": "^1.0.0",
"csv-parse": "^5.0.4",
"csv-parse": "^5.3.3",
"handlebars": "^4.7.7",
"moment": "^2.29.3",
"moment": "^2.29.4",
"moment-timezone": "^0.5.40",
"semver": "^7.3.7"
},
"devDependencies": {
+4 -10
View File
@@ -1,9 +1,8 @@
import {parse} from 'csv-parse/sync';
import * as core from '@actions/core';
import {issueCommand} from '@actions/core/lib/command';
import * as fs from 'fs';
import * as os from 'os';
import * as path from 'path';
import * as core from '@actions/core';
import {parse} from 'csv-parse/sync';
let _tmpDir: string;
@@ -31,8 +30,8 @@ export function getInputs(): Inputs {
tags: getInputList('tags', true),
flavor: getInputList('flavor', true),
labels: getInputList('labels', true),
sepTags: core.getInput('sep-tags') || `\n`,
sepLabels: core.getInput('sep-labels') || `\n`,
sepTags: core.getInput('sep-tags', {trimWhitespace: false}) || `\n`,
sepLabels: core.getInput('sep-labels', {trimWhitespace: false}) || `\n`,
bakeTarget: core.getInput('bake-target') || `docker-metadata-action`,
githubToken: core.getInput('github-token')
};
@@ -73,8 +72,3 @@ export const asyncForEach = async (array, callback) => {
await callback(array[index], index, array);
}
};
// FIXME: Temp fix https://github.com/actions/toolkit/issues/777
export function setOutput(name: string, value: unknown): void {
issueCommand('set-output', {name}, value);
}
+3 -3
View File
@@ -22,7 +22,7 @@ export function Transform(inputs: string[]): Image[] {
.split('=')
.map(item => item.trim());
if (parts.length == 1) {
images.push({name: parts[0].toLowerCase(), enable: true});
images.push({name: parts[0], enable: true});
} else {
newformat = true;
break;
@@ -46,13 +46,13 @@ export function Transform(inputs: string[]): Image[] {
.split('=')
.map(item => item.trim());
if (parts.length == 1) {
image.name = parts[0].toLowerCase();
image.name = parts[0];
} else {
const key = parts[0].toLowerCase();
const value = parts[1];
switch (key) {
case 'name': {
image.name = value.toLowerCase();
image.name = value;
break;
}
case 'enable': {
+9 -4
View File
@@ -1,5 +1,5 @@
import * as fs from 'fs';
import {getInputs, Inputs, setOutput} from './context';
import {getInputs, Inputs} from './context';
import * as github from './github';
import {Meta, Version} from './meta';
import * as core from '@actions/core';
@@ -70,11 +70,11 @@ async function run() {
core.startGroup(`JSON output`);
core.info(JSON.stringify(jsonOutput, null, 2));
core.endGroup();
setOutput('json', jsonOutput);
setOutput('json', JSON.stringify(jsonOutput));
// Bake definition file
// Bake file definition
const bakeFile: string = meta.getBakeFile();
core.startGroup(`Bake definition file`);
core.startGroup(`Bake file definition`);
core.info(fs.readFileSync(bakeFile, 'utf8'));
core.endGroup();
setOutput('bake-file', bakeFile);
@@ -83,4 +83,9 @@ async function run() {
}
}
function setOutput(name: string, value: string) {
core.setOutput(name, value);
core.exportVariable(`DOCKER_METADATA_OUTPUT_${name.replace(/\W/g, '_').toUpperCase()}`, value);
}
run();
+57 -16
View File
@@ -1,7 +1,7 @@
import * as handlebars from 'handlebars';
import * as fs from 'fs';
import * as path from 'path';
import moment from 'moment';
import moment from 'moment-timezone';
import * as pep440 from '@renovate/pep440';
import * as semver from 'semver';
import {Inputs, tmpDir} from './context';
@@ -37,6 +37,15 @@ export class Meta {
context.ref = `refs/pull/${context.payload.number}/merge`;
}
// DOCKER_METADATA_PR_HEAD_SHA env var can be used to set associated head
// SHA instead of commit SHA that triggered the workflow on pull request
// event.
if (/true/i.test(process.env.DOCKER_METADATA_PR_HEAD_SHA || '')) {
if ((/pull_request/.test(context.eventName) || /pull_request_target/.test(context.eventName)) && context.payload?.pull_request?.head?.sha != undefined) {
context.sha = context.payload.pull_request.head.sha;
}
}
this.inputs = inputs;
this.context = context;
this.repo = repo;
@@ -120,8 +129,19 @@ export class Meta {
const currentDate = this.date;
const vraw = this.setValue(
handlebars.compile(tag.attrs['pattern'])({
date: function (format) {
return moment(currentDate).utc().format(format);
date: function (format, options) {
const m = moment(currentDate);
let tz = 'UTC';
Object.keys(options.hash).forEach(key => {
switch (key) {
case 'tz':
tz = options.hash[key];
break;
default:
throw new Error(`Unknown ${key} attribute`);
}
});
return m.tz(tz).format(format);
}
}),
tag
@@ -224,7 +244,7 @@ export class Meta {
if (tag.attrs['value'].length > 0) {
vraw = this.setGlobalExp(tag.attrs['value']);
} else {
vraw = this.context.ref.replace(/^refs\/tags\//g, '').replace(/\//g, '-');
vraw = this.context.ref.replace(/^refs\/tags\//g, '');
}
let tmatch;
@@ -251,7 +271,7 @@ export class Meta {
if (!/^refs\/heads\//.test(this.context.ref)) {
return version;
}
const vraw = this.setValue(this.context.ref.replace(/^refs\/heads\//g, '').replace(/[^a-zA-Z0-9._-]+/g, '-'), tag);
const vraw = this.setValue(this.context.ref.replace(/^refs\/heads\//g, ''), tag);
return Meta.setVersion(version, vraw, this.flavor.latest == 'auto' ? false : this.flavor.latest == 'true');
}
@@ -259,7 +279,7 @@ export class Meta {
if (!/^refs\/tags\//.test(this.context.ref)) {
return version;
}
const vraw = this.setValue(this.context.ref.replace(/^refs\/tags\//g, '').replace(/\//g, '-'), tag);
const vraw = this.setValue(this.context.ref.replace(/^refs\/tags\//g, ''), tag);
return Meta.setVersion(version, vraw, this.flavor.latest == 'auto' ? true : this.flavor.latest == 'true');
}
@@ -277,7 +297,7 @@ export class Meta {
return version;
}
const val = this.context.ref.replace(/^refs\/heads\//g, '').replace(/[^a-zA-Z0-9._-]+/g, '-');
const val = this.context.ref.replace(/^refs\/heads\//g, '');
if (tag.attrs['branch'].length == 0) {
tag.attrs['branch'] = this.repo.default_branch;
}
@@ -301,7 +321,7 @@ export class Meta {
let val = this.context.sha;
if (tag.attrs['format'] === tcl.ShaFormat.Short) {
val = this.context.sha.substr(0, 7);
val = this.context.sha.substring(0, 7);
}
const vraw = this.setValue(val, tag);
@@ -312,6 +332,7 @@ export class Meta {
if (val.length == 0) {
return version;
}
val = Meta.sanitizeTag(val);
if (version.main == undefined) {
version.main = val;
} else if (val !== version.main) {
@@ -357,20 +378,20 @@ export class Meta {
if (!/^refs\/heads\//.test(ctx.ref)) {
return '';
}
return ctx.ref.replace(/^refs\/heads\//g, '').replace(/[^a-zA-Z0-9._-]+/g, '-');
return ctx.ref.replace(/^refs\/heads\//g, '');
},
tag: function () {
if (!/^refs\/tags\//.test(ctx.ref)) {
return '';
}
return ctx.ref.replace(/^refs\/tags\//g, '').replace(/\//g, '-');
return ctx.ref.replace(/^refs\/tags\//g, '');
},
sha: function () {
return ctx.sha.substr(0, 7);
return ctx.sha.substring(0, 7);
},
base_ref: function () {
if (/^refs\/tags\//.test(ctx.ref) && ctx.payload?.base_ref != undefined) {
return ctx.payload.base_ref.replace(/^refs\/heads\//g, '').replace(/\//g, '-');
return ctx.payload.base_ref.replace(/^refs\/heads\//g, '');
}
// FIXME: keep this for backward compatibility even if doesn't always seem
// to return the expected branch. See the comment below.
@@ -401,8 +422,19 @@ export class Meta {
}
return 'false';
},
date: function (format) {
return moment(currentDate).utc().format(format);
date: function (format, options) {
const m = moment(currentDate);
let tz = 'UTC';
Object.keys(options.hash).forEach(key => {
switch (key) {
case 'tz':
tz = options.hash[key];
break;
default:
throw new Error(`Unknown ${key} attribute`);
}
});
return m.tz(tz).format(format);
}
});
}
@@ -413,7 +445,7 @@ export class Meta {
if (!image.enable) {
continue;
}
images.push(image.name);
images.push(Meta.sanitizeImageName(image.name));
}
return images;
}
@@ -429,7 +461,8 @@ export class Meta {
tags.push(`${imageName}:${partial}`);
}
if (this.version.latest) {
tags.push(`${imageName}:${this.flavor.prefixLatest ? this.flavor.prefix : ''}latest${this.flavor.suffixLatest ? this.flavor.suffix : ''}`);
const latestTag = `${this.flavor.prefixLatest ? this.flavor.prefix : ''}latest${this.flavor.suffixLatest ? this.flavor.suffix : ''}`;
tags.push(`${imageName}:${Meta.sanitizeTag(latestTag)}`);
}
}
return tags;
@@ -495,4 +528,12 @@ export class Meta {
return bakeFile;
}
private static sanitizeImageName(name: string): string {
return name.toLowerCase();
}
private static sanitizeTag(tag: string): string {
return tag.replace(/[^a-zA-Z0-9._-]+/g, '-');
}
}
+1 -1
View File
@@ -95,7 +95,7 @@ export function Parse(s: string): Tag {
for (const field of fields) {
const parts = field
.toString()
.split('=')
.split(/(?<=^[^=]+?)=/)
.map(item => item.trim());
if (parts.length == 1) {
tag.attrs['value'] = parts[0];
+1 -1
View File
@@ -1,3 +1,3 @@
# syntax=docker/dockerfile:1
FROM alpine
RUN echo "Hello world!"
+6
View File
@@ -0,0 +1,6 @@
# syntax=docker/dockerfile:1
FROM alpine
RUN apk add --no-cache coreutils jq
ARG BUILDINFO
RUN printenv BUILDINFO
RUN echo $BUILDINFO | jq
+12
View File
@@ -0,0 +1,12 @@
# syntax=docker/dockerfile:1
FROM alpine
RUN apk add --no-cache coreutils jq
ARG DOCKER_METADATA_OUTPUT_VERSION
ARG DOCKER_METADATA_OUTPUT_TAGS
ARG DOCKER_METADATA_OUTPUT_LABELS
ARG DOCKER_METADATA_OUTPUT_JSON
RUN printenv DOCKER_METADATA_OUTPUT_VERSION
RUN printenv DOCKER_METADATA_OUTPUT_TAGS
RUN printenv DOCKER_METADATA_OUTPUT_LABELS
RUN printenv DOCKER_METADATA_OUTPUT_JSON
RUN echo $DOCKER_METADATA_OUTPUT_JSON | jq
+44 -33
View File
@@ -2,29 +2,30 @@
# yarn lockfile v1
"@actions/core@^1.6.0":
version "1.6.0"
resolved "https://registry.yarnpkg.com/@actions/core/-/core-1.6.0.tgz#0568e47039bfb6a9170393a73f3b7eb3b22462cb"
integrity sha512-NB1UAZomZlCV/LmJqkLhNTqtKfFXJZAUPcfl/zqG7EfsQdeUJtaWO98SGbuQ3pydJ3fHl2CvI/51OKYlCYYcaw==
"@actions/core@^1.10.0":
version "1.10.0"
resolved "https://registry.yarnpkg.com/@actions/core/-/core-1.10.0.tgz#44551c3c71163949a2f06e94d9ca2157a0cfac4f"
integrity sha512-2aZDDa3zrrZbP5ZYg159sNoLRb61nQ7awl5pSvIq5Qpj81vwDzdMRKzkWJGJuwVvWpvZKx7vspJALyvaaIQyug==
dependencies:
"@actions/http-client" "^1.0.11"
"@actions/http-client" "^2.0.1"
uuid "^8.3.2"
"@actions/github@^5.0.1":
version "5.0.1"
resolved "https://registry.yarnpkg.com/@actions/github/-/github-5.0.1.tgz#5fdbe371d9a592038668be95d12421361585fba1"
integrity sha512-JZGyPM9ektb8NVTTI/2gfJ9DL7Rk98tQ7OVyTlgTuaQroariRBsOnzjy0I2EarX4xUZpK88YyO503fhmjFdyAg==
"@actions/github@^5.1.1":
version "5.1.1"
resolved "https://registry.yarnpkg.com/@actions/github/-/github-5.1.1.tgz#40b9b9e1323a5efcf4ff7dadd33d8ea51651bbcb"
integrity sha512-Nk59rMDoJaV+mHCOJPXuvB1zIbomlKS0dmSIqPGxd0enAXBnOfn4VWF+CGtRCwXZG9Epa54tZA7VIRlJDS8A6g==
dependencies:
"@actions/http-client" "^1.0.11"
"@actions/http-client" "^2.0.1"
"@octokit/core" "^3.6.0"
"@octokit/plugin-paginate-rest" "^2.17.0"
"@octokit/plugin-rest-endpoint-methods" "^5.13.0"
"@actions/http-client@^1.0.11":
version "1.0.11"
resolved "https://registry.yarnpkg.com/@actions/http-client/-/http-client-1.0.11.tgz#c58b12e9aa8b159ee39e7dd6cbd0e91d905633c0"
integrity sha512-VRYHGQV1rqnROJqdMvGUbY/Kn8vriQe/F9HR2AlYHzmKuM/p3kjNuXhmdBfcVgsvRWTz5C5XW5xvndZrVBuAYg==
"@actions/http-client@^2.0.1":
version "2.0.1"
resolved "https://registry.yarnpkg.com/@actions/http-client/-/http-client-2.0.1.tgz#873f4ca98fe32f6839462a6f046332677322f99c"
integrity sha512-PIXiMVtz6VvyaRsGY268qvj57hXQEpsYogYOu2nrQhlf+XCGmZstmuZBbAybUl1nQGnvS1k1eEsQ69ZoD7xlSw==
dependencies:
tunnel "0.0.6"
tunnel "^0.0.6"
"@ampproject/remapping@^2.1.0":
version "2.1.2"
@@ -1559,7 +1560,7 @@ combined-stream@^1.0.8:
concat-map@0.0.1:
version "0.0.1"
resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=
integrity sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==
convert-source-map@^1.4.0, convert-source-map@^1.6.0, convert-source-map@^1.7.0:
version "1.8.0"
@@ -1604,10 +1605,10 @@ cssstyle@^2.3.0:
dependencies:
cssom "~0.3.6"
csv-parse@*, csv-parse@^5.0.4:
version "5.0.4"
resolved "https://registry.yarnpkg.com/csv-parse/-/csv-parse-5.0.4.tgz#97e5e654413bcf95f2714ce09bcb2be6de0eb8e3"
integrity sha512-5AIdl8l6n3iYQYxan5djB5eKDa+vBnhfWZtRpJTcrETWfVLYN0WSj3L9RwvgYt+psoO77juUr8TG8qpfGZifVQ==
csv-parse@*, csv-parse@^5.3.3:
version "5.3.3"
resolved "https://registry.yarnpkg.com/csv-parse/-/csv-parse-5.3.3.tgz#3b75d2279e2edb550cbc54c65b25cbbf3d0033ad"
integrity sha512-kEWkAPleNEdhFNkHQpFHu9RYPogsFj3dx6bCxL847fsiLgidzWg0z/O0B1kVWMJUc5ky64zGp18LX2T3DQrOfw==
data-urls@^2.0.0:
version "2.0.0"
@@ -2821,11 +2822,9 @@ json-stable-stringify-without-jsonify@^1.0.1:
integrity sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=
json5@2.x, json5@^2.1.2:
version "2.2.0"
resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.0.tgz#2dfefe720c6ba525d9ebd909950f0515316c89a3"
integrity sha512-f+8cldu7X/y7RAJurMEJmdoKXGB/X550w2Nr3tTbezL6RwEE/iMcm+tZnXeoZtKuOq6ft8+CqzEkrIgx1fPoQA==
dependencies:
minimist "^1.2.5"
version "2.2.3"
resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.3.tgz#78cd6f1a19bdc12b73db5ad0c61efd66c1e29283"
integrity sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==
kleur@^3.0.3:
version "3.0.3"
@@ -2942,9 +2941,9 @@ mimic-fn@^2.1.0:
integrity sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==
minimatch@^3.0.4:
version "3.0.4"
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083"
integrity sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==
version "3.1.2"
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b"
integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==
dependencies:
brace-expansion "^1.1.7"
@@ -2953,10 +2952,17 @@ minimist@^1.2.5:
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.6.tgz#8637a5b759ea0d6e98702cfb3a9283323c93af44"
integrity sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==
moment@^2.29.3:
version "2.29.3"
resolved "https://registry.yarnpkg.com/moment/-/moment-2.29.3.tgz#edd47411c322413999f7a5940d526de183c031f3"
integrity sha512-c6YRvhEo//6T2Jz/vVtYzqBzwvPT95JBQ+smCytzf7c50oMZRsR/a4w88aD34I+/QVSfnoAnSBFPJHItlOMJVw==
moment-timezone@^0.5.40:
version "0.5.40"
resolved "https://registry.yarnpkg.com/moment-timezone/-/moment-timezone-0.5.40.tgz#c148f5149fd91dd3e29bf481abc8830ecba16b89"
integrity sha512-tWfmNkRYmBkPJz5mr9GVDn9vRlVZOTe6yqY92rFxiOdWXbjaR0+9LwQnZGGuNR63X456NqmEkbskte8tWL5ePg==
dependencies:
moment ">= 2.9.0"
"moment@>= 2.9.0", moment@^2.29.4:
version "2.29.4"
resolved "https://registry.yarnpkg.com/moment/-/moment-2.29.4.tgz#3dbe052889fe7c1b2ed966fcb3a77328964ef108"
integrity sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w==
ms@2.1.2:
version "2.1.2"
@@ -3553,7 +3559,7 @@ tsutils@^3.21.0:
dependencies:
tslib "^1.8.1"
tunnel@0.0.6:
tunnel@^0.0.6:
version "0.0.6"
resolved "https://registry.yarnpkg.com/tunnel/-/tunnel-0.0.6.tgz#72f1314b34a5b192db012324df2cc587ca47f92c"
integrity sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==
@@ -3621,6 +3627,11 @@ uri-js@^4.2.2:
dependencies:
punycode "^2.1.0"
uuid@^8.3.2:
version "8.3.2"
resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2"
integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==
v8-compile-cache-lib@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.0.tgz#0582bcb1c74f3a2ee46487ceecf372e46bce53e8"