Skip to content

Commit f074fc8

Browse files
committed
Artifact Submission
1 parent 76b6c60 commit f074fc8

18 files changed

+324
-203
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ jobs:
1919
name: Build and Test
2020
uses: Apodini/.github/.github/workflows/build-and-test.yml@v1
2121
with:
22-
packagename: ApodiniTemplate
23-
testdocc: false
22+
packagename: ApodiniSustainabilityDemo
2423
docker-compose-test:
2524
name: Docker Compose Test
2625
uses: Apodini/.github/.github/workflows/docker-compose-test.yml@v1

.github/workflows/pull_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
name: Build and Test
1818
uses: Apodini/.github/.github/workflows/build-and-test.yml@v1
1919
with:
20-
packagename: ApodiniTemplate
20+
packagename: ApodiniSustainabilityDemo
2121
reuse_action:
2222
name: REUSE Compliance Check
2323
uses: Apodini/.github/.github/workflows/reuse.yml@v1

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ jobs:
2323
name: Docker Build and Push
2424
uses: Apodini/.github/.github/workflows/docker-build-and-push.yml@v1
2525
with:
26-
image-name: apodini/template
26+
image-name: apodini/sustainability

Dockerfile

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,7 @@ RUN swift build -c release
3333
WORKDIR /staging
3434

3535
# Copy main executable to staging area
36-
RUN cp "$(swift build --package-path /build -c release --show-bin-path)/WebService" ./
37-
38-
# Copy resources from the resources directory if the directories exist
39-
# Ensure that by default, neither the directory nor any of its contents are writable.
40-
RUN [ -d "$(swift build --package-path /build -c release --show-bin-path)/Apodini_ApodiniOpenAPI.resources" ] \
41-
&& mv "$(swift build --package-path /build -c release --show-bin-path)/Apodini_ApodiniOpenAPI.resources" ./ \
42-
&& chmod -R a-w ./Apodini_ApodiniOpenAPI.resources \
43-
|| echo No resources to copy
44-
RUN [ -d "$(swift build --package-path /build -c release --show-bin-path)/WebService_ApodiniTemplate.resources" ] \
45-
&& mv "$(swift build --package-path /build -c release --show-bin-path)/WebService_ApodiniTemplate.resources" ./ \
46-
&& chmod -R a-w ./WebService_ApodiniTemplate.resources \
47-
|| echo No resources to copy
36+
RUN cp "$(swift build --package-path /build -c release --show-bin-path)/FlightBooking" ./
4837

4938
# ================================
5039
# Run image
@@ -70,5 +59,4 @@ COPY --from=build --chown=apodini:apodini /staging /app
7059
USER apodini:apodini
7160

7261
# Start the Apodini service when the image is run.
73-
# The default port is 80. Can be adapted using the `--port` argument
74-
ENTRYPOINT ["./WebService"]
62+
ENTRYPOINT ["./FlightBooking"]

Package.resolved

Lines changed: 45 additions & 36 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,32 +12,33 @@ import PackageDescription
1212

1313

1414
let package = Package(
15-
name: "ApodiniTemplate",
15+
name: "ApodiniSustainabilityDemo",
1616
platforms: [
17-
.macOS(.v11)
17+
.macOS(.v12)
1818
],
1919
products: [
2020
.executable(
21-
name: "WebService",
22-
targets: ["WebService"]
21+
name: "FlightBooking",
22+
targets: ["FlightBooking"]
2323
)
2424
],
2525
dependencies: [
26-
.package(url: "https://github.com/Apodini/Apodini.git", .upToNextMinor(from: "0.9.1"))
26+
.package(url: "https://github.com/Apodini/Apodini.git", .upToNextMinor(from: "0.9.1")),
27+
.package(url: "https://github.com/Apodini/ApodiniSustainability.git", .branch("develop"))
2728
],
2829
targets: [
2930
.executableTarget(
30-
name: "WebService",
31+
name: "FlightBooking",
3132
dependencies: [
3233
.product(name: "Apodini", package: "Apodini"),
3334
.product(name: "ApodiniREST", package: "Apodini"),
34-
.product(name: "ApodiniOpenAPI", package: "Apodini")
35+
.product(name: "ApodiniSustainability", package: "ApodiniSustainability")
3536
]
3637
),
3738
.testTarget(
38-
name: "WebServiceTests",
39+
name: "FlightBookingTests",
3940
dependencies: [
40-
.target(name: "WebService")
41+
.target(name: "FlightBooking")
4142
]
4243
)
4344
]

0 commit comments

Comments
 (0)