File tree 2 files changed +22
-3
lines changed
2 files changed +22
-3
lines changed Original file line number Diff line number Diff line change @@ -32,10 +32,18 @@ jobs:
32
32
- name : Login to GHCR
33
33
run : echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin
34
34
35
- - name : Build and push multi-platform image
35
+ - name : Build and push multi-platform image for localdev
36
36
run : |
37
37
docker buildx build --push \
38
38
--platform linux/amd64,linux/arm64 \
39
39
--target localdev \
40
40
-t ghcr.io/fhir/ig-publisher-localdev:latest \
41
41
images/ig-publisher
42
+
43
+ - name : Build and push image for gh
44
+ run : |
45
+ docker buildx build --push \
46
+ --platform linux/arm64 \
47
+ --target gh \
48
+ -t ghcr.io/fhir/ig-publisher-gh:latest \
49
+ images/ig-publisher
Original file line number Diff line number Diff line change 1
- FROM --platform=$TARGETPLATFORM openjdk:23-jdk- slim-bookworm as base
1
+ FROM --platform=$TARGETPLATFORM openjdk:23-slim-bookworm as base
2
2
LABEL maintainer="Josh Mandel"
3
3
4
4
ARG NODE_VERSION=v20.13.1
@@ -7,7 +7,7 @@ ARG TARGETARCH
7
7
# Install dependencies, clean up, and set up non-root user
8
8
RUN apt-get update && apt-get -y install curl git openssl wget graphviz ruby ruby-dev build-essential libffi-dev && \
9
9
apt-get clean && \
10
- gem install jekyll jekyll-asciidoc
10
+ gem install jekyll
11
11
12
12
# Download and install Node.js
13
13
WORKDIR /tmp
@@ -47,6 +47,17 @@ ENV PATH="/home/publisher/bin:/home/publisher/bin/ig-publisher-scripts:/home/pub
47
47
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh" ]
48
48
CMD ["bash" ]
49
49
50
+ # ------- Begin CI -------
51
+ FROM localdev as gh
52
+ LABEL maintainer="Josh Mandel"
53
+ LABEL org.opencontainers.image.source=https://github.com/fhir/auto-ig-builder
54
+ USER root
55
+ RUN groupmod -g 121 publisher && \
56
+ usermod -u 1001 publisher && \
57
+ chown -R publisher:publisher /home/publisher
58
+ USER publisher
59
+
60
+
50
61
# ------- Begin CI -------
51
62
FROM base as ci
52
63
LABEL maintainer="Josh Mandel"
You can’t perform that action at this time.
0 commit comments