File tree Expand file tree Collapse file tree 2 files changed +60
-0
lines changed Expand file tree Collapse file tree 2 files changed +60
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Docker website
2+ on :
3+ push :
4+ branches :
5+ - gh-pages
6+ workflow_dispatch :
7+
8+ permissions :
9+ contents : read
10+
11+ jobs :
12+ build_docker :
13+ name : Docker
14+ runs-on : ubuntu-latest
15+ needs : build
16+ permissions :
17+ pages : write # Required to deploy to GitHub Pages.
18+ id-token : write # Required to verify that the deployment originates from this workflow.
19+
20+ steps :
21+
22+ - name : Checkout repository
23+ uses : actions/checkout@v4
24+ with :
25+ fetch-depth : 0
26+ branch : gh-pages
27+
28+ - name : Docker meta
29+ id : meta
30+ uses : docker/metadata-action@v5
31+ with :
32+ images : xhofe/alist-docs
33+
34+ - name : Set up QEMU
35+ uses : docker/setup-qemu-action@v3
36+
37+ - name : Set up Docker Buildx
38+ uses : docker/setup-buildx-action@v3
39+
40+ - name : Login to DockerHub
41+ if : github.event_name == 'push'
42+ uses : docker/login-action@v3
43+ with :
44+ username : xhofe
45+ password : ${{ secrets.DOCKERHUB_TOKEN }}
46+
47+ - name : Build and push
48+ id : docker_build
49+ uses : docker/build-push-action@v5
50+ with :
51+ context : .
52+ file : Dockerfile
53+ push : ${{ github.event_name == 'push' }}
54+ tags : ${{ steps.meta.outputs.tags }}
55+ labels : ${{ steps.meta.outputs.labels }}
56+ platforms : linux/amd64,linux/arm64,linux/arm/v7
Original file line number Diff line number Diff line change 1+ FROM halverneus/static-file-server:latest
2+
3+ # Copy your static files
4+ COPY . /web
You can’t perform that action at this time.
0 commit comments