-
Notifications
You must be signed in to change notification settings - Fork 7
81 lines (73 loc) · 2.81 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: Release Buildpacks
on:
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
detect:
name: Detecting Buildpacks
uses: heroku/languages-github-actions/.github/workflows/_buildpacks-release-detect.yml@main
package:
name: ${{ matrix.buildpack_id }}
needs: [ detect ]
strategy:
fail-fast: false
matrix:
include: ${{ fromJSON(needs.detect.outputs.buildpacks) }}
uses: heroku/languages-github-actions/.github/workflows/_buildpacks-release-package.yml@main
with:
buildpack_id: ${{ matrix.buildpack_id }}
buildpack_dir: ${{ matrix.buildpack_dir }}
buildpack_version: ${{ matrix.buildpack_version }}
buildpack_artifact_prefix: ${{ matrix.buildpack_artifact_prefix }}
publish-docker:
name: ${{ matrix.buildpack_id }}
needs: [ detect, package ]
strategy:
fail-fast: false
matrix:
include: ${{ fromJSON(needs.detect.outputs.buildpacks) }}
uses: heroku/languages-github-actions/.github/workflows/_buildpacks-release-publish-docker.yml@main
with:
buildpack_id: ${{ matrix.buildpack_id }}
buildpack_version: ${{ matrix.buildpack_version }}
buildpack_artifact_prefix: ${{ matrix.buildpack_artifact_prefix }}
docker_repository: ${{ matrix.docker_repository }}
secrets:
docker_hub_user: ${{ secrets.DOCKER_HUB_USER }}
docker_hub_token: ${{ secrets.DOCKER_HUB_TOKEN }}
publish-github:
name: ${{ matrix.buildpack_id }}
needs: [ detect, package ]
strategy:
fail-fast: false
matrix:
include: ${{ fromJSON(needs.detect.outputs.buildpacks) }}
uses: heroku/languages-github-actions/.github/workflows/_buildpacks-release-publish-github.yml@main
with:
buildpack_version: ${{ matrix.buildpack_version }}
buildpack_artifact_prefix: ${{ matrix.buildpack_artifact_prefix }}
publish-cnb:
name: ${{ matrix.buildpack_id }}
needs: [ detect, publish-docker ]
strategy:
fail-fast: false
matrix:
include: ${{ fromJSON(needs.detect.outputs.buildpacks) }}
uses: heroku/languages-github-actions/.github/workflows/_buildpacks-release-publish-cnb-registry.yml@main
with:
buildpack_id: ${{ matrix.buildpack_id }}
buildpack_version: ${{ matrix.buildpack_version }}
docker_repository: ${{ matrix.docker_repository }}
secrets:
cnb_registry_token: ${{ secrets.CNB_REGISTRY_RELEASE_BOT_GITHUB_TOKEN }}
update-builder:
name: Update Builder
needs: [ detect, publish-docker, publish-cnb, publish-github ]
uses: heroku/languages-github-actions/.github/workflows/_buildpacks-release-update-builder.yml@main
with:
app_id: ${{ vars.LINGUIST_GH_APP_ID }}
buildpack_version: ${{ needs.detect.outputs.version }}
secrets:
app_private_key: ${{ secrets.LINGUIST_GH_PRIVATE_KEY }}