We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8f3cb9 commit d6b0b1dCopy full SHA for d6b0b1d
2 files changed
.github/workflows/build-image.yml
@@ -41,6 +41,7 @@ jobs:
41
id: base_image
42
run: |
43
# Extract base image from Dockerfile
44
+ cd test-app
45
BASE_IMAGE=$(grep -E '^FROM' Dockerfile | head -n 1 | awk '{print $2}')
46
47
# Handle ARG-based FROM (e.g., FROM ${BASE_IMAGE})
Dockerfile
@@ -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