Skip to content

Commit 7bfada7

Browse files
committed
Merge branch 'external_build'
2 parents 1e7bf00 + e112f41 commit 7bfada7

File tree

4 files changed

+43
-2
lines changed

4 files changed

+43
-2
lines changed

.github/action/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ RUN cd zola && git checkout v0.19.2 && cargo install --path . --locked
1919

2020
RUN cd ..
2121

22-
RUN cargo install mdbook --locked && cargo install mdbook-variables --locked
22+
RUN cargo install mdbook --locked --version="^0.4" && cargo install mdbook-variables --locked --version="^0.2"
2323

2424
COPY entrypoint.sh /entrypoint.sh
2525

.github/action/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ main() {
9090
cd orientdb
9191

9292
echo "building javadocs for 3.2.x"
93-
git checkout 3.2.42
93+
git checkout `cat ../LAST_STABLE`
9494
mvn clean javadoc:aggregate
9595
mv target/site/apidocs/ ../public/javadocs/3.2.x/
9696

.github/workflows/build_image.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Build Docker image
2+
3+
on:
4+
workflow_dispatch:
5+
6+
env:
7+
REGISTRY: ghcr.io
8+
IMAGE_NAME: ${{ github.repository }}
9+
10+
jobs:
11+
build-and-push-image:
12+
runs-on: ubuntu-latest
13+
permissions:
14+
contents: read
15+
packages: write
16+
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v3
20+
- name: Log in to the Container registry
21+
uses: docker/login-action@v3
22+
with:
23+
registry: ${{ env.REGISTRY }}
24+
username: ${{ github.actor }}
25+
password: ${{ secrets.GITHUB_TOKEN }}
26+
27+
- name: Extract metadata (tags, labels) for Docker
28+
id: meta
29+
uses: docker/metadata-action@v3
30+
with:
31+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
32+
33+
- name: Build and push Docker image
34+
uses: docker/build-push-action@v3
35+
with:
36+
context: .
37+
file: .github/action/Dockerfile
38+
push: true
39+
tags: ${{ steps.meta.outputs.tags }}
40+
labels: ${{ steps.meta.outputs.labels }}

LAST_STABLE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.2.42

0 commit comments

Comments
 (0)