mirror of
https://github.com/hoverkraft-tech/compose-action.git
synced 2026-01-10 22:53:06 +08:00
Compare commits
3 Commits
b7900497f3
...
3086829978
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3086829978 | ||
|
|
9dc1f1e6ec | ||
|
|
50a58965b3 |
30
.github/release-config.yml
vendored
Normal file
30
.github/release-config.yml
vendored
Normal file
@ -0,0 +1,30 @@
|
||||
---
|
||||
template: |
|
||||
# What's Changed
|
||||
$CHANGES
|
||||
**Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...$RESOLVED_VERSION
|
||||
name-template: "Version $RESOLVED_VERSION"
|
||||
tag-template: "$RESOLVED_VERSION"
|
||||
tag-prefix: ""
|
||||
prerelease-identifier: "rc"
|
||||
version-resolver:
|
||||
major:
|
||||
labels:
|
||||
- "release-major"
|
||||
minor:
|
||||
labels:
|
||||
- "release-minor"
|
||||
patch:
|
||||
labels:
|
||||
- "release-patch"
|
||||
default: patch
|
||||
autolabeler:
|
||||
- label: "release-major"
|
||||
title:
|
||||
- "/^BREAKING CHANGE:/"
|
||||
- "/^\\w+!:/"
|
||||
- "/^\\w+\\(.+\\)!:/"
|
||||
- label: "release-minor"
|
||||
title:
|
||||
- "/^feat:/"
|
||||
- "/^feat\\(.+\\):/"
|
||||
2
.github/workflows/__check-dist.yml
vendored
2
.github/workflows/__check-dist.yml
vendored
@ -17,7 +17,7 @@ jobs:
|
||||
persist-credentials: false
|
||||
|
||||
- id: setup-node
|
||||
uses: hoverkraft-tech/ci-github-nodejs/actions/setup-node@338755b95043af1f8aa17409529fd20a9d2ef659 # 0.20.6
|
||||
uses: hoverkraft-tech/ci-github-nodejs/actions/setup-node@25ef8d971c0a866fb9e5d90130c7aaa084619df6 # 0.21.0
|
||||
|
||||
- name: Build dist/ Directory
|
||||
id: package
|
||||
|
||||
2
.github/workflows/__check-nodejs.yml
vendored
2
.github/workflows/__check-nodejs.yml
vendored
@ -7,7 +7,7 @@ permissions: {}
|
||||
|
||||
jobs:
|
||||
test-nodejs:
|
||||
uses: hoverkraft-tech/ci-github-nodejs/.github/workflows/continuous-integration.yml@338755b95043af1f8aa17409529fd20a9d2ef659 # 0.20.6
|
||||
uses: hoverkraft-tech/ci-github-nodejs/.github/workflows/continuous-integration.yml@25ef8d971c0a866fb9e5d90130c7aaa084619df6 # 0.21.0
|
||||
permissions:
|
||||
contents: read
|
||||
id-token: write
|
||||
|
||||
2
.github/workflows/__shared-ci.yml
vendored
2
.github/workflows/__shared-ci.yml
vendored
@ -7,7 +7,7 @@ permissions: {}
|
||||
|
||||
jobs:
|
||||
linter:
|
||||
uses: hoverkraft-tech/ci-github-common/.github/workflows/linter.yml@5ac504609f6ef35c5ac94bd8199063aa32104721 # 0.31.3
|
||||
uses: hoverkraft-tech/ci-github-common/.github/workflows/linter.yml@666b7b6eb000db3e8614647871fa60c9f1eb7179 # 0.31.4
|
||||
permissions:
|
||||
actions: read
|
||||
contents: read
|
||||
|
||||
2
.github/workflows/greetings.yml
vendored
2
.github/workflows/greetings.yml
vendored
@ -10,7 +10,7 @@ permissions: {}
|
||||
|
||||
jobs:
|
||||
greetings:
|
||||
uses: hoverkraft-tech/ci-github-common/.github/workflows/greetings.yml@5ac504609f6ef35c5ac94bd8199063aa32104721 # 0.31.3
|
||||
uses: hoverkraft-tech/ci-github-common/.github/workflows/greetings.yml@666b7b6eb000db3e8614647871fa60c9f1eb7179 # 0.31.4
|
||||
permissions:
|
||||
contents: read
|
||||
issues: write
|
||||
|
||||
14
.github/workflows/main-ci.yml
vendored
14
.github/workflows/main-ci.yml
vendored
@ -29,7 +29,7 @@ jobs:
|
||||
statuses: write
|
||||
secrets: inherit
|
||||
|
||||
release:
|
||||
prepare-docs:
|
||||
needs: ci
|
||||
if: github.event_name != 'schedule'
|
||||
runs-on: ubuntu-latest
|
||||
@ -56,13 +56,13 @@ jobs:
|
||||
}
|
||||
]
|
||||
|
||||
- uses: actions/create-github-app-token@7e473efe3cb98aa54f8d4bac15400b15fad77d94 # v2.2.0
|
||||
- uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1
|
||||
id: generate-token
|
||||
with:
|
||||
app-id: ${{ vars.CI_BOT_APP_ID }}
|
||||
private-key: ${{ secrets.CI_BOT_APP_PRIVATE_KEY }}
|
||||
|
||||
- uses: hoverkraft-tech/ci-github-common/actions/create-and-merge-pull-request@5ac504609f6ef35c5ac94bd8199063aa32104721 # 0.31.3
|
||||
- uses: hoverkraft-tech/ci-github-common/actions/create-and-merge-pull-request@666b7b6eb000db3e8614647871fa60c9f1eb7179 # 0.31.4
|
||||
with:
|
||||
github-token: ${{ steps.generate-token.outputs.token }}
|
||||
branch: docs/actions-workflows-documentation-update
|
||||
@ -74,7 +74,7 @@ jobs:
|
||||
[skip ci]
|
||||
|
||||
- id: upload-artifact
|
||||
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
|
||||
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
|
||||
with:
|
||||
name: documentation-files-${{ github.run_id }}
|
||||
path: |
|
||||
@ -82,13 +82,13 @@ jobs:
|
||||
.github/logo.svg
|
||||
|
||||
sync-docs:
|
||||
needs: release
|
||||
if: needs.release.outputs.artifact-id
|
||||
needs: prepare-docs
|
||||
if: needs.prepare-docs.outputs.artifact-id
|
||||
uses: hoverkraft-tech/public-docs/.github/workflows/sync-docs-dispatcher.yml@c40c17f7d6a8090950b3ef4bfc70502707a6bb9f # 0.3.0
|
||||
permissions:
|
||||
contents: read
|
||||
with:
|
||||
artifact-id: ${{ needs.release.outputs.artifact-id }}
|
||||
artifact-id: ${{ needs.prepare-docs.outputs.artifact-id }}
|
||||
github-app-id: ${{ vars.CI_BOT_APP_ID }}
|
||||
secrets:
|
||||
github-app-key: ${{ secrets.CI_BOT_APP_PRIVATE_KEY }}
|
||||
|
||||
2
.github/workflows/need-fix-to-issue.yml
vendored
2
.github/workflows/need-fix-to-issue.yml
vendored
@ -19,7 +19,7 @@ permissions: {}
|
||||
|
||||
jobs:
|
||||
main:
|
||||
uses: hoverkraft-tech/ci-github-common/.github/workflows/need-fix-to-issue.yml@5ac504609f6ef35c5ac94bd8199063aa32104721 # 0.31.3
|
||||
uses: hoverkraft-tech/ci-github-common/.github/workflows/need-fix-to-issue.yml@666b7b6eb000db3e8614647871fa60c9f1eb7179 # 0.31.4
|
||||
permissions:
|
||||
contents: read
|
||||
issues: write
|
||||
|
||||
26
.github/workflows/prepare-release.yml
vendored
Normal file
26
.github/workflows/prepare-release.yml
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
---
|
||||
name: "Prepare release"
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
types: [opened, reopened, synchronize]
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
permissions: {}
|
||||
|
||||
jobs:
|
||||
release:
|
||||
uses: hoverkraft-tech/ci-github-publish/.github/workflows/prepare-release.yml@84e8ace407055e7a40ba6670a8c697e1ce2dfafa # 0.20.1
|
||||
permissions:
|
||||
contents: write
|
||||
id-token: write
|
||||
pull-requests: write
|
||||
with:
|
||||
github-app-id: ${{ vars.CI_BOT_APP_ID }}
|
||||
secrets:
|
||||
github-app-key: ${{ secrets.CI_BOT_APP_PRIVATE_KEY }}
|
||||
2
.github/workflows/semantic-pull-request.yml
vendored
2
.github/workflows/semantic-pull-request.yml
vendored
@ -11,7 +11,7 @@ permissions: {}
|
||||
|
||||
jobs:
|
||||
main:
|
||||
uses: hoverkraft-tech/ci-github-common/.github/workflows/semantic-pull-request.yml@5ac504609f6ef35c5ac94bd8199063aa32104721 # 0.31.3
|
||||
uses: hoverkraft-tech/ci-github-common/.github/workflows/semantic-pull-request.yml@666b7b6eb000db3e8614647871fa60c9f1eb7179 # 0.31.4
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
|
||||
2
.github/workflows/stale.yml
vendored
2
.github/workflows/stale.yml
vendored
@ -8,7 +8,7 @@ permissions: {}
|
||||
|
||||
jobs:
|
||||
main:
|
||||
uses: hoverkraft-tech/ci-github-common/.github/workflows/stale.yml@5ac504609f6ef35c5ac94bd8199063aa32104721 # 0.31.3
|
||||
uses: hoverkraft-tech/ci-github-common/.github/workflows/stale.yml@666b7b6eb000db3e8614647871fa60c9f1eb7179 # 0.31.4
|
||||
permissions:
|
||||
issues: write
|
||||
pull-requests: write
|
||||
|
||||
30
README.md
30
README.md
@ -96,21 +96,21 @@ Some extra options can be passed to the `docker compose down` command using the
|
||||
|
||||
## Inputs
|
||||
|
||||
| **Input** | **Description** | **Required** | **Default** |
|
||||
| ------------------------ | -------------------------------------------------------------------------------------------------------------------------- | ------------ | --------------------------- |
|
||||
| **`docker-flags`** | Additional options to pass to `docker` command. | **false** | - |
|
||||
| **`compose-file`** | Path to compose file(s). It can be a list of files. It can be absolute or relative to the current working directory (cwd). | **false** | `./docker-compose.yml` |
|
||||
| **`services`** | Services to perform `docker compose up`. | **false** | - |
|
||||
| **`up-flags`** | Additional options to pass to `docker compose up` command. | **false** | - |
|
||||
| **`down-flags`** | Additional options to pass to `docker compose down` command. | **false** | - |
|
||||
| **`compose-flags`** | Additional options to pass to `docker compose` command. | **false** | - |
|
||||
| **`cwd`** | Current working directory | **false** | `$\{\{ github.workspace }}` |
|
||||
| **`compose-version`** | Compose version to use. | **false** | - |
|
||||
| | If null (default), it will use the current installed version. | | |
|
||||
| | If "latest", it will install the latest version. | | |
|
||||
| **`services-log-level`** | The log level used for Docker Compose service logs. | **false** | `debug` |
|
||||
| | Can be one of "debug", "info". | | |
|
||||
| **`github-token`** | The GitHub token used to create an authenticated client (to fetch the latest version of Docker Compose). | **false** | `$\{\{ github.token }}` |
|
||||
| **Input** | **Description** | **Required** | **Default** |
|
||||
| ------------------------ | -------------------------------------------------------------------------------------------------------------------------- | ------------ | ------------------------- |
|
||||
| **`docker-flags`** | Additional options to pass to `docker` command. | **false** | - |
|
||||
| **`compose-file`** | Path to compose file(s). It can be a list of files. It can be absolute or relative to the current working directory (cwd). | **false** | `./docker-compose.yml` |
|
||||
| **`services`** | Services to perform `docker compose up`. | **false** | - |
|
||||
| **`up-flags`** | Additional options to pass to `docker compose up` command. | **false** | - |
|
||||
| **`down-flags`** | Additional options to pass to `docker compose down` command. | **false** | - |
|
||||
| **`compose-flags`** | Additional options to pass to `docker compose` command. | **false** | - |
|
||||
| **`cwd`** | Current working directory | **false** | `${{ github.workspace }}` |
|
||||
| **`compose-version`** | Compose version to use. | **false** | - |
|
||||
| | If null (default), it will use the current installed version. | | |
|
||||
| | If "latest", it will install the latest version. | | |
|
||||
| **`services-log-level`** | The log level used for Docker Compose service logs. | **false** | `debug` |
|
||||
| | Can be one of "debug", "info". | | |
|
||||
| **`github-token`** | The GitHub token used to create an authenticated client (to fetch the latest version of Docker Compose). | **false** | `${{ github.token }}` |
|
||||
|
||||
<!-- inputs:end -->
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user