Skip to content

Commit

Permalink
publish images
Browse files Browse the repository at this point in the history
  • Loading branch information
millotp committed Jan 12, 2024
1 parent cae1c91 commit 53e36e9
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/.dart-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.0.6
3.2.4
2 changes: 1 addition & 1 deletion scripts/docker/Dockerfile.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ WORKDIR /app

# Java
RUN apt-get update \
&& apt-get install -y --no-install-recommends curl zip unzip \
&& apt-get install -y --no-install-recommends curl zip unzip \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN curl -s "https://get.sdkman.io" | bash
Expand Down
18 changes: 17 additions & 1 deletion scripts/docker/publish.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#! /bin/bash

export NODE_VERSION=$(cat .nvmrc)
find config -name '.*-version' | xargs -I{} sh -c 'l=$(echo "{}" | sed -e "s/-/_/;s/config\/\.//" | tr "[a-z]" "[A-Z]");echo "export $l=$(cat {})"'
eval $(find config -name '.*-version' | xargs -I{} sh -c 'l=$(echo "{}" | sed -e "s/-/_/;s/config\/\.//" | tr "[a-z]" "[A-Z]");echo "export $l=$(cat {})"')

docker buildx build --load \
--platform linux/amd64 \
Expand All @@ -14,3 +14,19 @@ docker buildx build --load \
--build-arg PYTHON_VERSION \
-t ghcr.io/algolia/apic-base:latest \
-f scripts/docker/Dockerfile.base .

docker buildx build --push \
--platform linux/amd64 \
--build-arg RUBY_VERSION \
--build-arg JAVA_VERSION \
--build-arg NODE_VERSION \
-t ghcr.io/algolia/apic-ruby:latest \
-f scripts/docker/Dockerfile.ruby .

docker buildx build --push \
--platform linux/arm64 \
--build-arg SWIFT_VERSION \
--build-arg JAVA_VERSION \
--build-arg NODE_VERSION \
-t ghcr.io/algolia/apic-swift:latest \
-f scripts/docker/Dockerfile.swift .

0 comments on commit 53e36e9

Please sign in to comment.