Skip to content

Commit e53f208

Browse files
committedMay 30, 2024·
Build separate for gh
1 parent 7551297 commit e53f208

File tree

2 files changed

+22
-3
lines changed

2 files changed

+22
-3
lines changed
 

‎.github/workflows/localdev.yaml

+9-1
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,18 @@ jobs:
3232
- name: Login to GHCR
3333
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin
3434

35-
- name: Build and push multi-platform image
35+
- name: Build and push multi-platform image for localdev
3636
run: |
3737
docker buildx build --push \
3838
--platform linux/amd64,linux/arm64 \
3939
--target localdev \
4040
-t ghcr.io/fhir/ig-publisher-localdev:latest \
4141
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

‎images/ig-publisher/Dockerfile

+13-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM --platform=$TARGETPLATFORM openjdk:23-jdk-slim-bookworm as base
1+
FROM --platform=$TARGETPLATFORM openjdk:23-slim-bookworm as base
22
LABEL maintainer="Josh Mandel"
33

44
ARG NODE_VERSION=v20.13.1
@@ -7,7 +7,7 @@ ARG TARGETARCH
77
# Install dependencies, clean up, and set up non-root user
88
RUN apt-get update && apt-get -y install curl git openssl wget graphviz ruby ruby-dev build-essential libffi-dev && \
99
apt-get clean && \
10-
gem install jekyll jekyll-asciidoc
10+
gem install jekyll
1111

1212
# Download and install Node.js
1313
WORKDIR /tmp
@@ -47,6 +47,17 @@ ENV PATH="/home/publisher/bin:/home/publisher/bin/ig-publisher-scripts:/home/pub
4747
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
4848
CMD ["bash"]
4949

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+
5061
# ------- Begin CI -------
5162
FROM base as ci
5263
LABEL maintainer="Josh Mandel"

0 commit comments

Comments
 (0)
Please sign in to comment.