Skip to content

Commit 198d635

Browse files
committed
update GH action, use ghcr
1 parent 13c7be0 commit 198d635

2 files changed

Lines changed: 24 additions & 6 deletions

File tree

.github/workflows/docs.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,13 @@ permissions:
1717
jobs:
1818
build:
1919
runs-on: ubuntu-latest
20+
container:
21+
image: ghcr.io/fuquery/antora:latest
22+
2023
environment:
2124
name: github-pages
2225
url: ${{ steps.deployment.outputs.page_url }}
2326

24-
container:
25-
build:
26-
context: .
27-
dockerfile: .devcontainer/Dockerfile
28-
2927
steps:
3028
- name: Checkout repository
3129
uses: actions/checkout@v5
@@ -43,4 +41,4 @@ jobs:
4341

4442
- name: Deploy to GitHub Pages
4543
id: deployment
46-
uses: actions/deploy-pages@v4
44+
uses: actions/deploy-pages@v4

tools/update_docker.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
from pathlib import Path
2+
import subprocess
3+
4+
REPO_PATH = Path(__file__).parent.parent
5+
6+
def main():
7+
subprocess.run(
8+
["docker", "build", "-f", REPO_PATH / ".devcontainer" / "Dockerfile",
9+
"-t", "ghcr.io/fuquery/antora:latest", "."],
10+
check=True,
11+
cwd=str(REPO_PATH))
12+
13+
subprocess.run(
14+
["docker", "push", "ghrc.io/fuquery/antora:latest"],
15+
check=True,
16+
cwd=str(REPO_PATH))
17+
18+
19+
if __name__ == "__main__":
20+
main()

0 commit comments

Comments
 (0)