Skip to content

Commit

Permalink
ci: Move versioning to tags
Browse files Browse the repository at this point in the history
  • Loading branch information
hcnp committed May 31, 2024
1 parent 3a6e76b commit 6fda61f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/container-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ on:
pull_request:
branches: [ main ]
push:
tags:
- v*
tags: ['*']

env:
REGISTRY: ghcr.io
Expand All @@ -30,3 +29,4 @@ jobs:
image: ig-publisher
tag_with_latest: ${{ github.ref_type == 'tag' && 'true' || 'false' }}
tag: ${{ github.ref_type == 'tag' && github.ref_name || env.DATE_TAG }}
extra_args: ${{ github.ref_type == 'tag' && '--build-arg IG_PUB_VERSION=${{ github.ref_name }}' || '' }}
26 changes: 14 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,30 @@ ARG group=publisher
ARG uid=1000
ARG gid=1000

ARG IG_PUB_VERSION=1.6.10

# https://github.com/nodesource/distributions?tab=readme-ov-file#debian-versions
# hadolint ignore=DL3008
# hadolint ignore=DL3008,DL3028,DL3016
RUN apt-get update \
&& apt-get install --yes --no-install-recommends \
build-essential=12.9 \
curl=7.88.1-10+deb12u5 \
ruby=1:3.1 \
ruby-dev=1:3.1 \
libfreetype6=2.12.1+dfsg-5 \
build-essential \
git \
curl \
ruby \
ruby-dev \
libfreetype6 \
\
&& curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
&& apt-get install --yes --no-install-recommends nodejs \
\
&& gem install \
bundler:2.5.11 \
jekyll:4.3.3 \
bundler \
jekyll \
\
&& npm install -g [email protected] \
&& npm install -g [email protected] \
&& npm install -g fsh-sushi \
\
&& mkdir input-cache \
&& curl -fsSL https://github.com/HL7/fhir-ig-publisher/releases/download/1.6.10/publisher.jar -o input-cache/publisher.jar \
&& curl -fsSL https://github.com/HL7/fhir-ig-publisher/releases/download/${IG_PUB_VERSION}/publisher.jar -o input-cache/publisher.jar \
\
&& apt-get autoremove --yes curl \
&& apt-get clean \
Expand All @@ -42,7 +44,7 @@ RUN apt-get update \
&& groupadd -g ${gid} ${group} \
&& useradd -l -u ${uid} -g ${group} -m ${user} \
&& mkdir -p /home/${user}/fhir-package-cache \
&& chown ${uid}:127 /home/${user}/fhir-package-cache
&& chown ${uid} /home/${user}/fhir-package-cache

# Do not run the entrypoint as root. That is a security risk.
USER ${uid}:${gid}
Expand Down

0 comments on commit 6fda61f

Please sign in to comment.