Skip to content

Commit

Permalink
Provide Baikal version as Docker build argument
Browse files Browse the repository at this point in the history
  • Loading branch information
ckulka committed Jun 28, 2024
1 parent d6bb836 commit 184ad34
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ jobs:
platforms: linux/amd64,linux/arm/v7,linux/arm64/v8,linux/386
push: true
tags: ${{ inputs.tags }}
build-args: VERSION=${{ inputs.image-version }}
# TODO github.event.created_at does not seem to work
labels: |
org.opencontainers.image.created=${{ github.event.created_at }}
org.opencontainers.image.url=https://hub.docker.com/r/ckulka/baikal
Expand Down
2 changes: 1 addition & 1 deletion apache-php8.2.dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Multi-stage build, see https://docs.docker.com/develop/develop-images/multistage-build/
FROM alpine AS builder

ENV VERSION 0.9.5
ARG VERSION

ADD https://github.com/sabre-io/Baikal/releases/download/$VERSION/baikal-$VERSION.zip .
RUN apk add unzip && unzip -q baikal-$VERSION.zip
Expand Down
2 changes: 1 addition & 1 deletion apache.dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Multi-stage build, see https://docs.docker.com/develop/develop-images/multistage-build/
FROM alpine AS builder

ENV VERSION 0.9.5
ARG VERSION

ADD https://github.com/sabre-io/Baikal/releases/download/$VERSION/baikal-$VERSION.zip .
RUN apk add unzip && unzip -q baikal-$VERSION.zip
Expand Down
2 changes: 1 addition & 1 deletion nginx-php8.2.dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Multi-stage build, see https://docs.docker.com/develop/develop-images/multistage-build/
FROM alpine AS builder

ENV VERSION 0.9.5
ARG VERSION

ADD https://github.com/sabre-io/Baikal/releases/download/$VERSION/baikal-$VERSION.zip .
RUN apk add unzip && unzip -q baikal-$VERSION.zip
Expand Down
2 changes: 1 addition & 1 deletion nginx.dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Multi-stage build, see https://docs.docker.com/develop/develop-images/multistage-build/
FROM alpine AS builder

ENV VERSION 0.9.5
ARG VERSION

ADD https://github.com/sabre-io/Baikal/releases/download/$VERSION/baikal-$VERSION.zip .
RUN apk add unzip && unzip -q baikal-$VERSION.zip
Expand Down

0 comments on commit 184ad34

Please sign in to comment.