Skip to content

Commit

Permalink
Fix gathering
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Fox <Kevin.Fox@pnnl.gov>
  • Loading branch information
kfox1111 committed Jan 22, 2025
1 parent 7e567c6 commit a1394f8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/pr_build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ jobs:
set -xe
echo "building: {{github.ref_name}}-$(uname -i)"
docker build -t t examples/rpms
mkdir -p /tmp/packages
docker run -i --rm -v /tmp:/tmp t cp -a '/usr/share/nginx/html/*' /tmp/packages
docker run -i --rm -v /tmp:/tmp t /bin/bash -c 'cp -a /usr/share/nginx/html/packages /tmp'
- name: Archive artifacts
uses: actions/upload-artifact@v4
with:
Expand Down
8 changes: 5 additions & 3 deletions examples/rpms/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@ RUN \
apt-get install -y alien && \
mkdir -p /root/debbuild && \
cd /root/debbuild && \
mkdir $(dpkg --print-architecture) && \
cd * && \
alien -k -c --to-deb /root/rpmbuild/RPMS/*/*.rpm

RUN \
apt-get install -y /root/debbuild/*.deb
apt-get install -y /root/debbuild/*/*.deb

FROM docker.io/library/nginx:latest
COPY --from=rpm-builder /root/rpmbuild/RPMS /usr/share/nginx/html/RPMS
COPY --from=deb-builder /root/debbuild /usr/share/nginx/html/DEBS
COPY --from=rpm-builder /root/rpmbuild/RPMS /usr/share/nginx/html/packages/RPMS
COPY --from=deb-builder /root/debbuild /usr/share/nginx/html/packages/DEBS

0 comments on commit a1394f8

Please sign in to comment.