File tree 1 file changed +11
-3
lines changed
1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 1
1
# See. https://docs.docker.com/build/ci/github-actions/multi-platform/
2
2
name : Publish Docker Image
3
+ run-name : ${{ github.workflow }} (${{ inputs.version || 'latest only' }})
3
4
4
5
on :
5
6
workflow_dispatch :
@@ -26,12 +27,19 @@ jobs:
26
27
- name : Set up Docker Buildx
27
28
uses : docker/setup-buildx-action@v3
28
29
30
+ - name : Prepare tags
31
+ id : prepare_tags
32
+ run : |
33
+ if [ -z "${{ inputs.version }}" ]; then
34
+ echo "TAGS=daido1976/aws-lambda-function-url-emulator:latest" >> $GITHUB_ENV
35
+ else
36
+ echo "TAGS=daido1976/aws-lambda-function-url-emulator:latest,daido1976/aws-lambda-function-url-emulator:${{ inputs.version }}" >> $GITHUB_ENV
37
+ fi
38
+
29
39
- name : Build and Push Docker Image
30
40
uses : docker/build-push-action@v6
31
41
with :
32
42
context : .
33
43
platforms : linux/amd64,linux/arm64
34
44
push : true
35
- tags : |
36
- daido1976/aws-lambda-function-url-emulator:latest
37
- ${{ github.event.inputs.version && 'daido1976/aws-lambda-function-url-emulator:${{ github.event.inputs.version }}' }}
45
+ tags : ${{ env.TAGS }}
You can’t perform that action at this time.
0 commit comments