Compare commits
306 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
476b464dd2 | ||
|
|
7af9e21506 | ||
|
|
0816181586 | ||
|
|
b0f9213f51 | ||
|
|
991045b0e3 | ||
|
|
e4449cc984 | ||
|
|
1a988663e6 | ||
|
|
ab8cbf21a7 | ||
|
|
a958b95edb | ||
|
|
f4f31f24e0 | ||
|
|
030ffeb6a1 | ||
|
|
e30dc742ce | ||
|
|
c0dff5ce43 | ||
|
|
5358137592 | ||
|
|
81157c58c1 | ||
|
|
0d34b8868a | ||
|
|
6491b5fbbf | ||
|
|
6ab0cd267a | ||
|
|
dfd5ae1497 | ||
|
|
7141e767ea | ||
|
|
a701c8e6e4 | ||
|
|
adcfca8457 | ||
|
|
c94e82e039 | ||
|
|
47747f4f60 | ||
|
|
ac8baf3c78 | ||
|
|
fd1a6df083 | ||
|
|
ac9a8ff682 | ||
|
|
0f7ce5c039 | ||
|
|
8012a8d0cd | ||
|
|
0e2ae015cb | ||
|
|
8ce7bee9dc | ||
|
|
84b064484b | ||
|
|
a4c1a0de86 | ||
|
|
f81ca7aba2 | ||
|
|
00a77b037c | ||
|
|
3c650f5bf6 | ||
|
|
707e7a7409 | ||
|
|
ffc140fb2b | ||
|
|
abf85cb8bc | ||
|
|
8cc7182747 | ||
|
|
41dded8117 | ||
|
|
38ad0c267f | ||
|
|
61d9b9deff | ||
|
|
d91aeadb79 | ||
|
|
7464c1c484 | ||
|
|
ed2f186709 | ||
|
|
ce33ef3b85 | ||
|
|
4ffc60b88d | ||
|
|
cf81db6f13 | ||
|
|
6eebdba682 | ||
|
|
86a9282fd8 | ||
|
|
0e47f36261 | ||
|
|
4c83819da8 | ||
|
|
2053ab06d3 | ||
|
|
ab1b1d0552 | ||
|
|
57e8f93042 | ||
|
|
71f843f2aa | ||
|
|
aaabd3cf78 | ||
|
|
e8dca4ae1f | ||
|
|
0fb28db0ff | ||
|
|
3cf7f38fb7 | ||
|
|
3d91629d01 | ||
|
|
face482551 | ||
|
|
71899ce9a0 | ||
|
|
5e8da1d085 | ||
|
|
f4a1992e6a | ||
|
|
23dcf2d913 | ||
|
|
70aace1b8e | ||
|
|
fbaab01e5c | ||
|
|
e6c8d60d0b | ||
|
|
109ef8fa42 | ||
|
|
27e7a9a7f7 | ||
|
|
1a958497e4 | ||
|
|
4677f0d86d | ||
|
|
d6b647df28 | ||
|
|
b209d257cf | ||
|
|
842ac1f5a6 | ||
|
|
febff29542 | ||
|
|
b37a565bf1 | ||
|
|
1daa7ef1c6 | ||
|
|
d20f14ec31 | ||
|
|
8e0ffdb8f7 | ||
|
|
90a2d4fc8c | ||
|
|
30d405da18 | ||
|
|
39f65a3996 | ||
|
|
6e9ed0f750 | ||
|
|
f1d2eb5c78 | ||
|
|
a55e2d80e5 | ||
|
|
65e6e7f9e9 | ||
|
|
1af1a177a0 | ||
|
|
1105747e98 | ||
|
|
69ae99b3e3 | ||
|
|
104d3c6e30 | ||
|
|
afe6f99154 | ||
|
|
0611075b26 | ||
|
|
dc27ceb15b | ||
|
|
1a711736fb | ||
|
|
3f412010bf | ||
|
|
7fdb99c81f | ||
|
|
711dcd2917 | ||
|
|
ea97deb9db | ||
|
|
70a3f23099 | ||
|
|
a10d236a94 | ||
|
|
94b3400514 | ||
|
|
253ae79725 | ||
|
|
59532913c5 | ||
|
|
42442995cf | ||
|
|
c7a4460502 | ||
|
|
c0ccdfb9e1 | ||
|
|
5e3e686369 | ||
|
|
a931c8641e | ||
|
|
2a8d031553 | ||
|
|
1f1687aa40 | ||
|
|
b028929e76 | ||
|
|
b6273a575d | ||
|
|
ce2b9a12c5 | ||
|
|
8a75db89ea | ||
|
|
25e4df6a06 | ||
|
|
3406bad307 | ||
|
|
1aab4e827f | ||
|
|
bd0c3b5f47 | ||
|
|
083e44c9f2 | ||
|
|
e016980dd9 | ||
|
|
df9c9ffc99 | ||
|
|
e15d1a7551 | ||
|
|
d1d26fff47 | ||
|
|
e53385a7ac | ||
|
|
cec67f42af | ||
|
|
e377f7f20e | ||
|
|
6de63b1223 | ||
|
|
85cf570767 | ||
|
|
e36ebc1c44 | ||
|
|
d65f28701c | ||
|
|
a999650a01 | ||
|
|
33762aab33 | ||
|
|
4b9ca50876 | ||
|
|
6d94a04526 | ||
|
|
86aade6297 | ||
|
|
e6ffe5c417 | ||
|
|
413b9bf54a | ||
|
|
fc09e833a4 | ||
|
|
c5434ea3bb | ||
|
|
48bd0f6351 | ||
|
|
e09ac33ec4 | ||
|
|
f9d70fdc0e | ||
|
|
65087f45e2 | ||
|
|
8d2a5777a4 | ||
|
|
e0f9501188 | ||
|
|
2e10cdac96 | ||
|
|
e327e42d91 | ||
|
|
97a5798272 | ||
|
|
da4c8b59ff | ||
|
|
e36f7a263b | ||
|
|
8467b32e11 | ||
|
|
19b1ef9e25 | ||
|
|
aaab0e9c64 | ||
|
|
cd50da83ca | ||
|
|
234058a478 | ||
|
|
3780088d88 | ||
|
|
119bf8c3b4 | ||
|
|
7ae1d6736a | ||
|
|
1f1ec31861 | ||
|
|
853efd0a8f | ||
|
|
e72bdff040 | ||
|
|
4f36636d26 | ||
|
|
529e482584 | ||
|
|
94505ab224 | ||
|
|
99a99b0ce1 | ||
|
|
0aff29778b | ||
|
|
f7cf161674 | ||
|
|
6da9b2d0d7 | ||
|
|
aed283069c | ||
|
|
05713aec34 | ||
|
|
beccad08ff | ||
|
|
e102caff1c | ||
|
|
7d7c596621 | ||
|
|
f0da2372f0 | ||
|
|
3176b2128b | ||
|
|
4b7d463e85 | ||
|
|
b147ab2dc3 | ||
|
|
dc2a9531b4 | ||
|
|
b46e5c8562 | ||
|
|
bba2af4e70 | ||
|
|
4cc49ff53b | ||
|
|
b9df1d9042 | ||
|
|
e2feed35a0 | ||
|
|
927e241fd0 | ||
|
|
7b24bbba8a | ||
|
|
a36b123594 | ||
|
|
ae178b9897 | ||
|
|
c0aba5e54c | ||
|
|
d02e4c43a9 | ||
|
|
23c10d92c5 | ||
|
|
812521d4cb | ||
|
|
840f7f0c26 | ||
|
|
546c163c90 | ||
|
|
c35aecfeb1 | ||
|
|
8bbcb3a535 | ||
|
|
9ecf236bb2 | ||
|
|
e34d20a102 | ||
|
|
643f1eb1cc | ||
|
|
4b42b708ba | ||
|
|
2a8d980c49 | ||
|
|
23242432f8 | ||
|
|
270aa30a22 | ||
|
|
c8a6b024a8 | ||
|
|
b33bc26344 | ||
|
|
0a8cf9d6f1 | ||
|
|
13b0d80d30 | ||
|
|
7eafeab8d5 | ||
|
|
c839d7553a | ||
|
|
bbae6eb301 | ||
|
|
2716d23c4e | ||
|
|
9d318c76c8 | ||
|
|
b83997dfce | ||
|
|
4a58820948 | ||
|
|
5b2f53bcbe | ||
|
|
261ffc619b | ||
|
|
7eb6df5863 | ||
|
|
f5e4a460a2 | ||
|
|
717d2189ed | ||
|
|
322120f8d8 | ||
|
|
f738c3219f | ||
|
|
6ed08fc392 | ||
|
|
4ea559be22 | ||
|
|
a909c3d35d | ||
|
|
eb13fc687a | ||
|
|
07493a505e | ||
|
|
b21cf89f40 | ||
|
|
fb69717f90 | ||
|
|
d34bfa9f08 | ||
|
|
c2d6410517 | ||
|
|
4da47c6c4d | ||
|
|
77413c4388 | ||
|
|
bf42211dd3 | ||
|
|
472d7742de | ||
|
|
1fad61caa3 | ||
|
|
ad875ef532 | ||
|
|
7a211dc864 | ||
|
|
0aca69f1f5 | ||
|
|
6a7802dde4 | ||
|
|
48d24bfa93 | ||
|
|
ed4ba60abb | ||
|
|
1abafb048a | ||
|
|
ef178b0f5a | ||
|
|
b4d8f5f474 | ||
|
|
5ba8db24e4 | ||
|
|
e90ee6febe | ||
|
|
b37c0883ec | ||
|
|
82ac056288 | ||
|
|
1b1d15bbab | ||
|
|
a1607e348c | ||
|
|
08f972bdb9 | ||
|
|
4c24bd2ff9 | ||
|
|
e81805c9e4 | ||
|
|
cb7bd0f6c0 | ||
|
|
7028cae87b | ||
|
|
266c33a08a | ||
|
|
5c38082992 | ||
|
|
dcab34d7b4 | ||
|
|
4e74e45e8a | ||
|
|
b342c2eaa3 | ||
|
|
3999959d1d | ||
|
|
cb1a0f66c7 | ||
|
|
f783c19905 | ||
|
|
c93a6c53c9 | ||
|
|
01a27926ff | ||
|
|
afb0b3eadb | ||
|
|
fd519bcd44 | ||
|
|
15c87b521e | ||
|
|
10d962c70b | ||
|
|
89f1755239 | ||
|
|
6943fc6c56 | ||
|
|
4c7a7fefef | ||
|
|
97dda08352 | ||
|
|
a9f7e46545 | ||
|
|
bcd5742b7f | ||
|
|
3ec851ba8f | ||
|
|
c18fa291d5 | ||
|
|
84bd3c166f | ||
|
|
d3b7b07d1b | ||
|
|
b2a9babb92 | ||
|
|
9c2f153e72 | ||
|
|
9223e1c8f1 | ||
|
|
a598711f06 | ||
|
|
5d49115b6a | ||
|
|
da46aa8824 | ||
|
|
eaf6128697 | ||
|
|
030dc573fc | ||
|
|
b76fff8aba | ||
|
|
cc55fd7c17 | ||
|
|
da259cf742 | ||
|
|
177183a289 | ||
|
|
ac5c032dec | ||
|
|
d6cb86c09d | ||
|
|
2d0d054b26 | ||
|
|
c66d2fd2f8 | ||
|
|
2125cfe6f1 | ||
|
|
8a41a21f33 | ||
|
|
ab776dc56f | ||
|
|
c252bc3e18 | ||
|
|
3e79e2d174 | ||
|
|
1c106b6c8f | ||
|
|
cdf8c71a18 | ||
|
|
fac5e9fb56 | ||
|
|
65ef1dbda5 |
1
.github/FUNDING.yml
vendored
1
.github/FUNDING.yml
vendored
@@ -1 +0,0 @@
|
||||
github: [KengoTODA]
|
||||
45
.github/workflows/semantic-tag.yml
vendored
45
.github/workflows/semantic-tag.yml
vendored
@@ -1,45 +0,0 @@
|
||||
name: Publish semantic tags
|
||||
|
||||
on:
|
||||
release:
|
||||
types:
|
||||
- published
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
# Release with semantic tag like v1.0.3
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
ref: ${{ github.event.release.tag_name }}
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
- run: npm install semver
|
||||
- name: Get versions
|
||||
uses: actions/github-script@v6
|
||||
id: batch
|
||||
env:
|
||||
TAG_NAME: ${{ github.event.release.tag_name }}
|
||||
with:
|
||||
script: |
|
||||
const semver = require('semver')
|
||||
const { TAG_NAME } = process.env
|
||||
return {
|
||||
minor: `v${semver.major(TAG_NAME).toString()}.${semver.minor(TAG_NAME).toString()}`,
|
||||
major: `v${semver.major(TAG_NAME).toString()}`
|
||||
}
|
||||
- run: |
|
||||
git tag -f "$MAJOR_VER"
|
||||
git tag -f "$MINOR_VER"
|
||||
git push origin -f "$MAJOR_VER"
|
||||
git push origin -f "$MINOR_VER"
|
||||
env:
|
||||
MAJOR_VER: ${{ fromJSON(steps.batch.outputs.result).major }}
|
||||
MINOR_VER: ${{ fromJSON(steps.batch.outputs.result).minor }}
|
||||
64
.github/workflows/test.yml
vendored
64
.github/workflows/test.yml
vendored
@@ -1,64 +0,0 @@
|
||||
name: 'build-test'
|
||||
on: # rebuild any PRs and main branch changes
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- 'releases/*'
|
||||
|
||||
jobs:
|
||||
build: # make sure build/ci work properly
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
# Make sure the release step uses its own credentials.
|
||||
persist-credentials: false
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
cache: npm
|
||||
node-version-file: '.nvmrc'
|
||||
- run: |
|
||||
npm ci
|
||||
npm run all
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Run semantic-release
|
||||
run: |
|
||||
npx semantic-release
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.PAT_TO_PUSH }}
|
||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
test: # make sure the action works on a clean machine without building
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ./
|
||||
with:
|
||||
version: '1.26.2'
|
||||
- uses: ./
|
||||
with:
|
||||
version: '2.4.1'
|
||||
- uses: ./
|
||||
with:
|
||||
version: 'v2.4.1'
|
||||
- uses: ./
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
actionlint:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event.pull_request
|
||||
permissions:
|
||||
contents: read
|
||||
checks: write
|
||||
pull-requests: write
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: reviewdog/action-actionlint@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
reporter: github-pr-review
|
||||
2
LICENSE
2
LICENSE
@@ -1,7 +1,7 @@
|
||||
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2021 Kengo TODA
|
||||
Copyright (c) 2021-2024 Kengo TODA
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
|
||||
This action downloads the `docker-compose` command and add it to the `PATH` for following executions. It supports the Linux environment only.
|
||||
|
||||
⚠ The `docker-compose` command is now deprecated, consider to use the `docker compose` sub command instead. Refer to [Docker official blog](https://www.docker.com/blog/announcing-compose-v2-general-availability/) for detail.
|
||||
> [!IMPORTANT]
|
||||
> The `docker-compose` command is now deprecated, consider to use the `docker compose` sub command instead. Refer to [Docker official blog](https://www.docker.com/blog/announcing-compose-v2-general-availability/) for detail.
|
||||
|
||||
## How to use
|
||||
|
||||
|
||||
@@ -9,5 +9,5 @@ branding:
|
||||
color: blue
|
||||
icon: play
|
||||
runs:
|
||||
using: 'node16'
|
||||
using: 'node20'
|
||||
main: 'dist/index.js'
|
||||
|
||||
36234
dist/index.js
vendored
36234
dist/index.js
vendored
File diff suppressed because one or more lines are too long
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
16839
package-lock.json
generated
16839
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
47
package.json
47
package.json
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@kengotoda/actions-setup-docker-compose",
|
||||
"version": "1.1.4",
|
||||
"version": "1.2.2",
|
||||
"description": "the GitHub Action setting up docker-compose command",
|
||||
"main": "lib/main.js",
|
||||
"private": false,
|
||||
@@ -28,50 +28,25 @@
|
||||
"author": "Kengo TODA <skypencil@gmail.com>",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@actions/core": "^1.4.0",
|
||||
"@actions/exec": "^1.1.0",
|
||||
"@actions/core": "^1.10.0",
|
||||
"@actions/exec": "^1.1.1",
|
||||
"@actions/tool-cache": "^2.0.1",
|
||||
"@octokit/action": "^5.0.0"
|
||||
"@octokit/action": "^6.0.7"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@semantic-release/exec": "^6.0.3",
|
||||
"@semantic-release/git": "^10.0.1",
|
||||
"@types/node": "^18.0.0",
|
||||
"@typescript-eslint/parser": "^5.3.0",
|
||||
"@vercel/ncc": "^0.36.0",
|
||||
"@types/node": "^20.0.0",
|
||||
"@typescript-eslint/parser": "^7.0.0",
|
||||
"@vercel/ncc": "^0.38.0",
|
||||
"eslint": "^8.1.0",
|
||||
"eslint-plugin-github": "^4.3.3",
|
||||
"eslint-plugin-jest": "^27.0.1",
|
||||
"eslint-plugin-github": "^4.10.2",
|
||||
"eslint-plugin-jest": "^28.0.0",
|
||||
"jest": "^29.0.0",
|
||||
"js-yaml": "^4.1.0",
|
||||
"prettier": "2.8.8",
|
||||
"semantic-release": "^19.0.2",
|
||||
"prettier": "3.3.3",
|
||||
"semantic-release": "^24.0.0",
|
||||
"ts-jest": "^29.0.0",
|
||||
"typescript": "^5.0.0"
|
||||
},
|
||||
"release": {
|
||||
"branches": "main",
|
||||
"plugins": [
|
||||
"@semantic-release/commit-analyzer",
|
||||
"@semantic-release/release-notes-generator",
|
||||
"@semantic-release/npm",
|
||||
"@semantic-release/github",
|
||||
[
|
||||
"@semantic-release/exec",
|
||||
{
|
||||
"prepare": "npm run package"
|
||||
}
|
||||
],
|
||||
[
|
||||
"@semantic-release/git",
|
||||
{
|
||||
"assets": [
|
||||
"dist",
|
||||
"package.json"
|
||||
],
|
||||
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,6 +9,6 @@
|
||||
}
|
||||
],
|
||||
"extends": [
|
||||
"config:base"
|
||||
"config:recommended"
|
||||
]
|
||||
}
|
||||
|
||||
@@ -24,7 +24,8 @@ async function installOnLinux(version: string): Promise<string> {
|
||||
if (!version.startsWith('v') && parseInt(version.split('.')[0], 10) >= 2) {
|
||||
version = `v${version}`
|
||||
}
|
||||
const url = `https://github.com/docker/compose/releases/download/${version}/docker-compose-${await system}-${await hardware}`
|
||||
const url = `https://gh.api.99988866.xyz/https://github.com/docker/compose/releases/download/${version}/docker-compose-${await system}-${await hardware}`
|
||||
runCommand(`echo ${url}`)
|
||||
const installerPath = await downloadTool(url)
|
||||
await exec(`chmod +x ${installerPath}`)
|
||||
const cachedPath = await cacheFile(
|
||||
|
||||
Reference in New Issue
Block a user