Skip to content

Commit

Permalink
Export build artifacts for .deb packages
Browse files Browse the repository at this point in the history
This attempts to use shrink/actions-docker-extract and
actions/upload-artifact to take the completed .deb and .changes files
out of a container that has terminated, then upload them as build
artifacts.
  • Loading branch information
botimer committed Jul 4, 2024
1 parent 68afdee commit 530b127
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/build-apache-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,44 @@ jobs:
push: true
tags: 'ghcr.io/mlibrary/lauth/lauth-apache:${{ github.sha }}, ghcr.io/mlibrary/lauth/lauth-apache:latest'
file: ./apache/Dockerfile

- name: Build .deb packages
uses: docker/build-push-action@v5
with:
context: ./
target: packages
push: false
load: true
tags: 'lauth-debs:latest'
file: ./apache/Dockerfile

- uses: shrink/actions-docker-extract@v3
id: extract
with:
image: lauth-debs:latest
path: /debs/out/.
destination: dist

- name: Archive http-check .deb package
uses: actions/upload-artifact@v4
with:
name: http-check
path: dist/http-check*.deb

- name: Archive mod-authn-remoteuser .deb package
uses: actions/upload-artifact@v4
with:
name: mod-authn-remoteuser
path: dist/libapache2-mod-authn-remoteuser*.deb

- name: Archive mod-lauth .deb package
uses: actions/upload-artifact@v4
with:
name: mod-authn-remoteuser
path: dist/libapache2-mod-lauth*.deb

- name: Archive .changes files
uses: actions/upload-artifact@v4
with:
name: mod-authn-remoteuser
path: dist/*.changes

0 comments on commit 530b127

Please sign in to comment.