mirror of
https://github.com/kubesphere/website.git
synced 2025-12-26 00:12:48 +00:00
Merge pull request #75 from kubesphere/add_dockerfile_and_actions
add dockerfile and github workflows
This commit is contained in:
commit
6c2a4be73b
|
|
@ -0,0 +1,32 @@
|
|||
name: KubeSphere Website
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: true
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Setup Hugo
|
||||
uses: peaceiris/actions-hugo@v2
|
||||
with:
|
||||
hugo-version: '0.71.1'
|
||||
|
||||
- name: Build
|
||||
run: hugo --minify
|
||||
|
||||
- name: Build and Push image
|
||||
uses: docker/build-push-action@v1
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
repository: kubesphere/website
|
||||
tags: latest
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
FROM nginx:alpine
|
||||
COPY public/ /usr/share/nginx/html/
|
||||
Loading…
Reference in New Issue