You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a Containerfile that is using a COPY command with a heredoc:
FROM ubuntu
COPY <<EOF /etc/dpkg/dpkg.cfg.d/excludes
# Drop all man pages
path-exclude=/usr/share/man/*
# Drop all translations
path-exclude=/usr/share/locale/*/LC_MESSAGES/*.mo
# Drop all documentation ...
path-exclude=/usr/share/doc/*
# ... except copyright files ...
path-include=/usr/share/doc/*/copyright
# ... and Debian changelogs for native & non-native packages
path-include=/usr/share/doc/*/changelog.*
EOF
This fails to build with the following GitHub actions workflow configuration:
I am unsure what the cause is here. The only issue I could find that might be remotely relevant was containers/buildah#5391. However I am not knowledgeable on buildah and its internals, just an end-user of the GitHub action.
If it helps, I create a repo with the Containerfile and workflow action that reliably reproduces this issue:
I've just discovered that it fails with a RUN heredoc as well. I've updated the https://github.com/joshuar/buildah-action-test repo with example containerfiles and jobs for both heredoc to a file and heredoc to run some commands.
Both containerfiles still work fine on the command-line with buildah, outside of the buildah-build action.
Version
redhat-actions/buildah-build@v2
Describe the bug
I have a Containerfile that is using a COPY command with a heredoc:
This fails to build with the following GitHub actions workflow configuration:
The error in the actions log is:
This builds fine using buildah on the command-line:
I am unsure what the cause is here. The only issue I could find that might be remotely relevant was containers/buildah#5391. However I am not knowledgeable on buildah and its internals, just an end-user of the GitHub action.
If it helps, I create a repo with the Containerfile and workflow action that reliably reproduces this issue:
https://github.com/joshuar/buildah-action-test
The text was updated successfully, but these errors were encountered: