mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2024-10-16 21:12:20 +00:00
84161fe084
Add CIs to enable the release process of a new version of WAMR, and build and publish the binary files when a version is released, including iwasm, wamrc, lldb, vscode-extension and wamr-ide for Ubuntu-20.04, Ubuntu-22.04 and MacOS. And refine the CIs to test spec cases.
49 lines
1.8 KiB
YAML
49 lines
1.8 KiB
YAML
# Copyright (C) 2019 Intel Corporation. All rights reserved.
|
|
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
|
|
name: Create and publish Docker images
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
ver_num:
|
|
description: a semantic version number.
|
|
type: string
|
|
required: true
|
|
|
|
jobs:
|
|
build-and-push-images:
|
|
runs-on: ubuntu-22.04
|
|
permissions:
|
|
contents: read
|
|
packages: write
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Downcase github actor
|
|
id: downcase_github_actor
|
|
uses: ASzc/change-string-case-action@v2
|
|
with:
|
|
string: ${{ github.actor }}
|
|
|
|
- name: Login to the Container registry
|
|
uses: docker/login-action@v2
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ steps.downcase_github_actor.outputs.lowercase }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Build and push Docker image(wasm-toolchain:${{ inputs.ver_num }}) to Container registry
|
|
run: |
|
|
docker build -t ghcr.io/${{ steps.downcase_github_actor.outputs.lowercase }}/wasm-toolchain:${{ inputs.ver_num }} .
|
|
docker push ghcr.io/${{ steps.downcase_github_actor.outputs.lowercase }}/wasm-toolchain:${{ inputs.ver_num }}
|
|
working-directory: test-tools/wamr-ide/WASM-Toolchain/Docker
|
|
|
|
- name: Build and push Docker image(wasm-debug-server:${{ inputs.ver_num }}) to Container registry
|
|
run: |
|
|
docker build -t ghcr.io/${{ steps.downcase_github_actor.outputs.lowercase }}/wasm-debug-server:${{ inputs.ver_num }} .
|
|
docker push ghcr.io/${{ steps.downcase_github_actor.outputs.lowercase }}/wasm-debug-server:${{ inputs.ver_num }}
|
|
working-directory: test-tools/wamr-ide/WASM-Debug-Server/Docker
|