|
13 | 13 | description: 'Buildpack image'
|
14 | 14 | required: true
|
15 | 15 | default: 'hackmdio/buildpack:16.20.2-35fe7e39'
|
16 |
| - |
17 |
| -env: |
18 |
| - REGISTRY_IMAGE: hackmdio/hackmd |
| 16 | + registry_image: |
| 17 | + description: 'image name' |
| 18 | + required: false |
| 19 | + default: 'hackmdio/hackmd' |
19 | 20 |
|
20 | 21 | jobs:
|
21 | 22 | build-amd64:
|
|
24 | 25 | with:
|
25 | 26 | platform: linux/amd64
|
26 | 27 | platform_pair: linux_amd64
|
27 |
| - registry_image: ${{ env.REGISTRY_IMAGE }} |
| 28 | + registry_image: ${{ github.event.inputs.registry_image }} |
28 | 29 | runtime: ${{ github.event.inputs.runtime }}
|
29 | 30 | buildpack: ${{ github.event.inputs.buildpack }}
|
30 | 31 | runs_on: ubuntu-latest
|
|
35 | 36 | with:
|
36 | 37 | platform: linux/arm64
|
37 | 38 | platform_pair: linux_arm64
|
38 |
| - registry_image: ${{ env.REGISTRY_IMAGE }} |
| 39 | + registry_image: ${{ github.event.inputs.registry_image }} |
39 | 40 | runtime: ${{ github.event.inputs.runtime }}
|
40 | 41 | buildpack: ${{ github.event.inputs.buildpack }}
|
41 | 42 | runs_on: macos-latest
|
|
61 | 62 | id: meta
|
62 | 63 | uses: docker/metadata-action@v5
|
63 | 64 | with:
|
64 |
| - images: ${{ env.REGISTRY_IMAGE }} |
| 65 | + images: ${{ github.event.inputs.registry_image }} |
65 | 66 | tags: |
|
66 | 67 | type=match,pattern=\d.\d.\d
|
67 | 68 | type=sha,prefix=
|
|
76 | 77 | working-directory: /tmp/digests
|
77 | 78 | run: |
|
78 | 79 | docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
|
79 |
| - $(printf '${{ env.REGISTRY_IMAGE }}@sha256:%s ' *) |
| 80 | + $(printf '${{ github.event.inputs.registry_image }}@sha256:%s ' *) |
80 | 81 | -
|
81 | 82 | name: Inspect image
|
82 | 83 | run: |
|
83 |
| - docker buildx imagetools inspect ${{ env.REGISTRY_IMAGE }}:${{ steps.meta.outputs.version }} |
| 84 | + docker buildx imagetools inspect ${{ github.event.inputs.registry_image }}:${{ steps.meta.outputs.version }} |
0 commit comments