Skip to content

GUACAMOLE-1993: Provide built manual as github artifact as part of PR build.#262

Open
jmuehlner wants to merge 1 commit intoapache:mainfrom
jmuehlner:GUACAMOLE-1993-built-manual-as-github-artifact
Open

GUACAMOLE-1993: Provide built manual as github artifact as part of PR build.#262
jmuehlner wants to merge 1 commit intoapache:mainfrom
jmuehlner:GUACAMOLE-1993-built-manual-as-github-artifact

Conversation

@jmuehlner
Copy link
Copy Markdown
Contributor

@jmuehlner jmuehlner commented Oct 17, 2024

No description provided.

@jmuehlner jmuehlner marked this pull request as ready for review October 17, 2024 00:04
Copy link
Copy Markdown
Contributor

@mike-jumper mike-jumper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - I'm going to close and reopen to trigger this and check out the resulting artifact.

@mike-jumper mike-jumper reopened this Mar 20, 2025
@mike-jumper
Copy link
Copy Markdown
Contributor

That works quite nicely.

Comment on lines +29 to +33
docker build --pull --no-cache --tag built-manual-image .
docker create --name built-manual-container built-manual-image
docker cp built-manual-container:/usr/local/apache2/htdocs "$RUNNER_TEMP/htdocs"
docker container rm --force --volumes built-manual-container
docker image rm --force built-manual-image
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just occurred to me that this will be a race condition if multiple PR builds end up getting assigned to the same runner. Maybe the container name and image should be unique for the PR?

Comment on lines +30 to +32
docker create --name built-manual-container built-manual-image
docker cp built-manual-container:/usr/local/apache2/htdocs "$RUNNER_TEMP/htdocs"
docker container rm --force --volumes built-manual-container
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can avoid keeping the temporary container across multiple commands by replacing this with something like:

docker run --rm built-manual-image tar -C /usr/local/apache2 -c htdocs | tar -C "$RUNNER_TEMP" -x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants