Wren-UI Release stable image #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Wren-UI Release stable image | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: Give a version for this release | |
type: string | |
required: true | |
defaults: | |
run: | |
working-directory: wren-ui | |
jobs: | |
build-image: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push image | |
run: | | |
docker buildx build \ | |
--platform linux/amd64,linux/arm64 \ | |
--tag ghcr.io/canner/wren-ui:${{ github.event.inputs.version }} \ | |
--tag ghcr.io/canner/wren-ui:latest \ | |
--file ./Dockerfile \ | |
--push . |