mirror of
https://github.com/neondatabase/neon.git
synced 2026-10-29 14:57:25 +00:00
chore(ci): pin python base images to sha (#11367)
Similar to how we pin base `debian` images, also pin `python` base images, so we better cache them and have reproducible builds.
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
FROM swift:5.10 AS build
|
||||
# use base image swift:5.10
|
||||
FROM swift:5.10@sha256:69828d795abc6aa3f7b7f7a02054ab308420f54dcc806fcbd89c54944e61a089 AS build
|
||||
WORKDIR /source
|
||||
|
||||
COPY . .
|
||||
RUN swift build --configuration release
|
||||
|
||||
FROM swift:5.10
|
||||
# use base image swift:5.10
|
||||
FROM swift:5.10@sha256:69828d795abc6aa3f7b7f7a02054ab308420f54dcc806fcbd89c54944e61a089
|
||||
WORKDIR /app
|
||||
COPY --from=build /source/.build/release .
|
||||
CMD ["/app/PostgresNIOExample"]
|
||||
|
||||
Reference in New Issue
Block a user