From 3f5a6aceda05d55520d8616f966e94b26a149f71 Mon Sep 17 00:00:00 2001 From: Seungmin Kim <8457324+ehfd@users.noreply.github.com> Date: Thu, 13 Jan 2022 17:15:53 +0900 Subject: [PATCH] Fix CI Pre-build docker image not deploying on tags (#2105) --- .github/workflows/prebuilt_docker_image.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/prebuilt_docker_image.yml b/.github/workflows/prebuilt_docker_image.yml index 70fe9b62b..787a4d57d 100644 --- a/.github/workflows/prebuilt_docker_image.yml +++ b/.github/workflows/prebuilt_docker_image.yml @@ -1,8 +1,7 @@ name: prebuilt-docker-image on: - push: - tags: - - "*.*.*" + release: + types: [published] env: GHCR_REGISTRY: ghcr.io IMAGE_NAME: pyodide/pyodide @@ -33,7 +32,7 @@ jobs: push: true build-args: | VERSION=${{ env.PYODIDE_ENV_VERSION }} - tags: ${{ env.IMAGE_NAME }}:${{ github.event.inputs.version }} + tags: ${{ env.IMAGE_NAME }}:${{ github.event.release.tag_name }} labels: ${{ steps.meta.outputs.labels }} - name: Image digest run: echo ${{ steps.build.outputs.digest }} @@ -61,7 +60,7 @@ jobs: push: true build-args: | VERSION=${{ env.PYODIDE_ENV_VERSION }} - tags: ${{ env.GHCR_REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.event.inputs.version }} + tags: ${{ env.GHCR_REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.event.release.tag_name }} labels: ${{ steps.meta.outputs.labels }} - name: Image digest run: echo ${{ steps.build.outputs.digest }}