Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/actions/core-cicd/maven-job/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,21 @@ runs:
name: docker-build-context
path: dotCMS/target/docker-build.tar

- id: build-docker-image-from-archive
name: Build Docker Image from Archive
if: ${{ inputs.generate-docker == 'true' }}
shell: bash
run: |
# Extract the build context from the tar archive
mkdir -p /tmp/docker-context
tar -xf dotCMS/target/docker-build.tar -C /tmp/docker-context

# Build the Docker image from the extracted context
docker build -t dotcms/dotcms-test:${{ inputs.version }} /tmp/docker-context

# Verify the image was created
docker images dotcms/dotcms-test:${{ inputs.version }}

- id: save-docker-image
name: Save Docker Image to Tar File
if: ${{ inputs.generate-docker == 'true' }}
Expand Down
2 changes: 1 addition & 1 deletion parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
<version.versions.plugin>2.8.1</version.versions.plugin>
<version.maven.plugin.plugin>3.8.1</version.maven.plugin.plugin>
<version.war.plugin>3.2.3</version.war.plugin>
<version.docker-maven.plugin>0.43.4</version.docker-maven.plugin>
<version.docker-maven.plugin>0.48.0</version.docker-maven.plugin>
<test.working.dir>${project.build.directory}/testdata</test.working.dir>
<test.temp.dir>${test.working.dir}/temp</test.temp.dir>

Expand Down
Loading