Skip to content

Commit d1bda2d

Browse files
Add used GITHUB_ vars as build args
1 parent 50d05a6 commit d1bda2d

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

.github/workflows/image.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,7 @@ jobs:
7272
build-args: |
7373
BUILD_DATE=${{ env.BUILD_DATE }}
7474
VCS_REF=${{ env.VCS_REF }}
75+
GITHUB_REF=${{ github.ref }}
76+
GITHUB_RUN_ID=${{ github.run_id }}
77+
GITHUB_RUN_NUMBER=${{ github.run_number }}
78+
GITHUB_RUN_ATTEMPT=${{ github.run_attempt }}

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ ENV NJS_TAG 0.7.9
2727

2828
ARG BUILD_DATE
2929
ARG VCS_REF
30+
ARG GITHUB_REF
31+
ARG GITHUB_RUN_ID
32+
ARG GITHUB_RUN_NUMBER
33+
ARG GITHUB_RUN_ATTEMPT
3034

3135
RUN set -x; GPG_KEYS=13C82A63B603576156E30A4EA0EA981B66B0D967 \
3236
&& CONFIG="\

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Images for this are available on
4646
Semantic versioning is enabled since [519e20d7f65d53b976cf7d13e364dca326e988b7](https://github.com/patrikjuvonen/docker-nginx-http3/commit/519e20d7f65d53b976cf7d13e364dca326e988b7),
4747
the first semantic version being 2.0.0. You can use a semantical version using tags
4848
such as `:2.0.1`, `:2.0`, `:2`. I also provide a `latest` tag which is the latest
49-
image.
49+
release, and `master` which is the latest image from master branch.
5050

5151
This is a base image like the default _nginx_ image. It is meant to be used as a
5252
drop-in replacement for the nginx base image.

0 commit comments

Comments
 (0)