Skip to content

build dashboard image #10

build dashboard image

build dashboard image #10

name: build dashboard image
on:
workflow_dispatch:
inputs:
image_tag:
description: 'dashboard image tag'
required: false
type: string
jobs:
publish-image:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 9
run_install: |
cwd: dashboard-ui-v2
- name: Build dashboard
run: make dashboard-dist
- name: Login Docker Hub
env:
PASSWORD: ${{ secrets.DOCKERHUB_FUSE_ACCESS_TOKEN }}
run: docker login --username chnliyong --password ${PASSWORD}
- name: build dashboard image and push
env:
DASHBOARD_TAG: ${{ inputs.image_tag }}
run: |
export DOCKER_CLI_EXPERIMENTAL=enabled
docker run --rm --privileged docker/binfmt:66f9012c56a8316f9244ffd7622d7c21c1f6f28d
docker buildx create --use --name mybuilder
make -C docker dashboard-buildx
- name: Setup upterm session
if: ${{ failure() }}
timeout-minutes: 60
uses: lhotari/action-upterm@v1