Fix CI Pre-build docker image not deploying on tags (#2105)

This commit is contained in:
Seungmin Kim 2022-01-13 17:15:53 +09:00 committed by GitHub
parent 9d515cc2d2
commit 3f5a6aceda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 5 deletions

View File

@ -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 }}