Skip to content

Commit b19eea1

Browse files
authored
Switch to Amazon Linux 2023 to fix issue with outdated OpenSSH server (#52)
1 parent 2f5b797 commit b19eea1

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Dockerfile

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
# pinning, because AWS lightsail AMIs don't support openssh 9+ yet
2-
FROM ruby@sha256:54d09dd38d80d8b850fbff21425d9bd159f9ff7e1de1cdbcbb0b7745f5049784
1+
FROM ruby:3.1-slim
32

43
RUN apt-get -qq update && apt-get -qq -y install openssh-client git >/dev/null
54
WORKDIR /app

lib/pull_preview/providers/lightsail.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def availability_zones
148148
def blueprint_id
149149
blueprint_id = client.get_blueprints.blueprints.find do |blueprint|
150150
blueprint.platform == "LINUX_UNIX" &&
151-
blueprint.group == "amazon_linux_2" &&
151+
blueprint.group == "amazon_linux_2023" &&
152152
blueprint.is_active &&
153153
blueprint.type == "os"
154154
end.blueprint_id

0 commit comments

Comments
 (0)