mirror of
https://github.com/apricote/releaser-pleaser.git
synced 2026-02-10 03:37:03 +00:00
Compare commits
6 commits
6953708407
...
10d6c72587
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
10d6c72587 | ||
| 05be3684c6 | |||
| cbfacc894b | |||
|
|
71351140f6 | ||
|
|
8c7b9fcf93 | ||
|
|
cf3ac3c42d |
7 changed files with 27 additions and 12 deletions
2
.github/workflows/docs.yaml
vendored
2
.github/workflows/docs.yaml
vendored
|
|
@ -19,7 +19,7 @@ jobs:
|
||||||
|
|
||||||
- uses: ./.github/actions/setup-mdbook
|
- uses: ./.github/actions/setup-mdbook
|
||||||
with:
|
with:
|
||||||
version: v0.4.40 # renovate: datasource=github-releases depName=rust-lang/mdbook
|
version: v0.4.42 # renovate: datasource=github-releases depName=rust-lang/mdbook
|
||||||
|
|
||||||
- name: Build Book
|
- name: Build Book
|
||||||
working-directory: docs
|
working-directory: docs
|
||||||
|
|
|
||||||
2
.github/workflows/releaser-pleaser.yaml
vendored
2
.github/workflows/releaser-pleaser.yaml
vendored
|
|
@ -34,7 +34,7 @@ jobs:
|
||||||
- run: ko build --bare --local --tags ci github.com/apricote/releaser-pleaser/cmd/rp
|
- run: ko build --bare --local --tags ci github.com/apricote/releaser-pleaser/cmd/rp
|
||||||
|
|
||||||
- run: mkdir -p .github/actions/releaser-pleaser
|
- run: mkdir -p .github/actions/releaser-pleaser
|
||||||
- run: "sed -i 's|image: .*$|image: ghcr.io/apricote/releaser-pleaser:ci|g' action.yml"
|
- run: "sed -i 's|image: .*$|image: docker://ghcr.io/apricote/releaser-pleaser:ci|g' action.yml"
|
||||||
|
|
||||||
# Dogfood the action to make sure it works for users.
|
# Dogfood the action to make sure it works for users.
|
||||||
- name: releaser-pleaser
|
- name: releaser-pleaser
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ stages: [ release ]
|
||||||
# and create a corresponding GitLab Release.
|
# and create a corresponding GitLab Release.
|
||||||
create-release:
|
create-release:
|
||||||
stage: release
|
stage: release
|
||||||
|
needs: []
|
||||||
image: registry.gitlab.com/gitlab-org/release-cli:v0.19.0
|
image: registry.gitlab.com/gitlab-org/release-cli:v0.19.0
|
||||||
script: echo "Creating release $CI_COMMIT_TAG"
|
script: echo "Creating release $CI_COMMIT_TAG"
|
||||||
rules:
|
rules:
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,11 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## [v0.4.2](https://github.com/apricote/releaser-pleaser/releases/tag/v0.4.2)
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
- **action**: container image reference used wrong syntax (#96)
|
||||||
|
|
||||||
## [v0.4.1](https://github.com/apricote/releaser-pleaser/releases/tag/v0.4.1)
|
## [v0.4.1](https://github.com/apricote/releaser-pleaser/releases/tag/v0.4.1)
|
||||||
|
|
||||||
### Bug Fixes
|
### Bug Fixes
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ inputs:
|
||||||
outputs: {}
|
outputs: {}
|
||||||
runs:
|
runs:
|
||||||
using: 'docker'
|
using: 'docker'
|
||||||
image: ghcr.io/apricote/releaser-pleaser:v0.4.1 # x-releaser-pleaser-version
|
image: docker://ghcr.io/apricote/releaser-pleaser:v0.4.2 # x-releaser-pleaser-version
|
||||||
args:
|
args:
|
||||||
- run
|
- run
|
||||||
- --forge=github
|
- --forge=github
|
||||||
|
|
|
||||||
|
|
@ -63,15 +63,25 @@ In the section "Variables" click on the "Add variable" button to open the form f
|
||||||
Create or open your `.gitlab-ci.yml` and add the following include to your configuration:
|
Create or open your `.gitlab-ci.yml` and add the following include to your configuration:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
stages: [build]
|
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- component: $CI_SERVER_FQDN/apricote/releaser-pleaser/run@v0.4.0-beta.1
|
- component: $CI_SERVER_FQDN/apricote/releaser-pleaser/run@v0.4.0-beta.1
|
||||||
inputs:
|
inputs:
|
||||||
token: $RELEASER_PLEASER_TOKEN
|
token: $RELEASER_PLEASER_TOKEN
|
||||||
```
|
```
|
||||||
|
|
||||||
> You can set the `stage` input if you want to run `releaser-pleaser` during a different stage.
|
> You can override the `releaser-pleaser` job if you want to tweak the job definition:
|
||||||
|
>
|
||||||
|
> ```yaml
|
||||||
|
> stages: [release]
|
||||||
|
>
|
||||||
|
> include:
|
||||||
|
> - component: $CI_SERVER_FQDN/apricote/releaser-pleaser/run@v0.4.0-beta.1
|
||||||
|
> inputs:
|
||||||
|
> token: $RELEASER_PLEASER_TOKEN
|
||||||
|
>
|
||||||
|
> releaser-pleaser:
|
||||||
|
> stage: release
|
||||||
|
> ```
|
||||||
|
|
||||||
<div class="warning">
|
<div class="warning">
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,19 +12,17 @@ spec:
|
||||||
description: 'List of files that are scanned for version references.'
|
description: 'List of files that are scanned for version references.'
|
||||||
default: ""
|
default: ""
|
||||||
|
|
||||||
stage:
|
|
||||||
default: build
|
|
||||||
description: 'Defines the build stage'
|
|
||||||
# Remember to update docs/reference/gitlab-ci-component.md
|
# Remember to update docs/reference/gitlab-ci-component.md
|
||||||
---
|
---
|
||||||
|
|
||||||
releaser-pleaser:
|
releaser-pleaser:
|
||||||
stage: $[[ inputs.stage ]]
|
stage: build
|
||||||
|
needs: []
|
||||||
rules:
|
rules:
|
||||||
# There is no way to run a pipeline when the MR description is updated :(
|
# There is no way to run a pipeline when the MR description is updated :(
|
||||||
- if: $CI_COMMIT_BRANCH == "$[[ inputs.branch ]]"
|
- if: $CI_COMMIT_BRANCH == "$[[ inputs.branch ]]"
|
||||||
image:
|
image:
|
||||||
name: ghcr.io/apricote/releaser-pleaser:v0.4.1 # x-releaser-pleaser-version
|
name: ghcr.io/apricote/releaser-pleaser:v0.4.2 # x-releaser-pleaser-version
|
||||||
entrypoint: [""]
|
entrypoint: [""]
|
||||||
variables:
|
variables:
|
||||||
GITLAB_TOKEN: $[[ inputs.token ]]
|
GITLAB_TOKEN: $[[ inputs.token ]]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue