Files
sealos/.github/workflows/imagehub-frontend.yml
T
zhujingyang 147ed6d372 feat web terminal frontend (#2972)
* feat web terminal frontend

Signed-off-by: zhu jing yang <3161362058@qq.com>

* fix postmessage security

Signed-off-by: zhu jing yang <3161362058@qq.com>

* postMessage specifies the source

Signed-off-by: zhu jing yang <3161362058@qq.com>

* feat terminal & imagehub github action

Signed-off-by: zhu jing yang <3161362058@qq.com>

---------

Signed-off-by: zhu jing yang <3161362058@qq.com>
2023-04-24 17:29:22 +08:00

52 lines
1.3 KiB
YAML

name: Imagehub-Frontend
on:
push:
branches: ['main']
paths:
- 'frontend/providers/imagehub/**'
- '.github/workflows/imagehub-frontend.yml'
- '!**/*.md'
jobs:
imagehub-frontend:
runs-on: ubuntu-20.04
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v3
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: |
ghcr.io/${{ github.repository_owner }}/imagehub-frontend
tags: |
type=raw,value=latest,enable=true
type=sha,enable=true,format=short
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Github Container Hub
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GH_PAT }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: ./frontend/providers/imagehub
file: ./frontend/providers/imagehub/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}