Skip to content

Commit dd375c1

Browse files
committed
#3414 webpage: add github workflow to build feature/vuepress-next docker image
Signed-off-by: Patrizio Bekerle <[email protected]>
1 parent 8e722c4 commit dd375c1

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Build and Deploy Webpage
2+
on:
3+
push:
4+
branches: ["feature/vuepress-next"]
5+
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-including-paths
6+
# if [[ ${changed_file} == "CHANGELOG.md" ]] || [[ ${changed_file} = screenshots* ]] || [[ ${changed_file} = webpage* ]] || [[ ${changed_file} = ".github/workflows/build-deploy-webpage.yml" ]] ;
7+
paths:
8+
- "CHANGELOG.md"
9+
- "screenshots/**"
10+
- "webpage/**"
11+
- ".github/workflows/build-deploy-webpage-next.yml"
12+
workflow_dispatch:
13+
14+
defaults:
15+
run:
16+
working-directory: webpage
17+
18+
jobs:
19+
build:
20+
runs-on: ubuntu-latest
21+
22+
steps:
23+
- uses: actions/checkout@v6
24+
# copy screenshots and changelog to webpage folder
25+
- run: cp ../screenshots src/.vuepress/public -R; cp ../CHANGELOG.md src/changelog.md
26+
- name: Set up QEMU
27+
uses: docker/setup-qemu-action@v3
28+
- name: Set up Docker Buildx
29+
uses: docker/setup-buildx-action@v3
30+
- name: Login to DockerHub
31+
uses: docker/login-action@v2
32+
with:
33+
username: ${{ secrets.DOCKERHUB_USERNAME }}
34+
password: ${{ secrets.DOCKERHUB_TOKEN }}
35+
- name: Build and push
36+
id: docker_build
37+
uses: docker/build-push-action@v6
38+
with:
39+
push: true
40+
#path: ./webpage
41+
context: ./webpage
42+
file: ./webpage/Dockerfile
43+
tags: pbeke/qownnotes-webpage-next:latest
44+
- name: Image digest
45+
run: echo ${{ steps.docker_build.outputs.digest }}

0 commit comments

Comments
 (0)