Skip to content

Commit b1f3c38

Browse files
committed
Fix publish ci
1 parent 3f1d450 commit b1f3c38

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

.github/workflows/publish.yaml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,12 @@ jobs:
2626
- name: Set up Docker Buildx
2727
uses: docker/setup-buildx-action@v3
2828

29-
- name: Prepare tags
30-
id: prepare_tags
31-
run: |
32-
if [ -z "${{ github.event.inputs.version }}" ]; then
33-
echo "TAGS=latest" >> $GITHUB_ENV
34-
else
35-
echo "TAGS=latest,${{ github.event.inputs.version }}" >> $GITHUB_ENV
36-
fi
37-
3829
- name: Build and Push Docker Image
3930
uses: docker/build-push-action@v6
4031
with:
4132
context: .
4233
platforms: linux/amd64,linux/arm64
4334
push: true
44-
tags: daido1976/aws-lambda-function-url-emulator:${{ steps.prepare_tags.outputs.TAGS }}
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 }}' }}

0 commit comments

Comments
 (0)