Skip to content

Commit d6b0b1d

Browse files
committed
fix
1 parent b8f3cb9 commit d6b0b1d

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/build-image.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ jobs:
4141
id: base_image
4242
run: |
4343
# Extract base image from Dockerfile
44+
cd test-app
4445
BASE_IMAGE=$(grep -E '^FROM' Dockerfile | head -n 1 | awk '{print $2}')
4546
4647
# Handle ARG-based FROM (e.g., FROM ${BASE_IMAGE})

Dockerfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
FROM tomcat:9.0.60-jre11-openjdk-slim-buster
2+
3+
ADD test-app/target/spring4shell-demo.war /usr/local/tomcat/webapps/
4+
EXPOSE 8080
5+
6+
RUN echo 'my big secret' > dbpass
7+
ENV SECRET='this should not be here'
8+
9+
CMD ["catalina.sh", "run"]
10+
11+
LABEL org.opencontainers.image.revision="xpto4"
12+
LABEL org.opencontainers.image.source="https://github.com/your-org/repo"

0 commit comments

Comments
 (0)