Skip to content
Merged
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
11 changes: 9 additions & 2 deletions .github/workflows/build_docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,25 @@ jobs:
- { name: debian_12, type: deb, path: "docker/debian" , base-image: debian:12-slim }
- { name: ubuntu_24.04, type: deb, path: "docker/ubuntu", base-image: ubuntu:24.04 }
steps:
# See deb and rpm steps.
- name: Normalize version number
run: |
export PKG_VERSION=$(echo ${{ inputs.version }} | sed 's/[_-]/~/g')
echo "PKG_VERSION=$PKG_VERSION" >> $GITHUB_ENV
echo "PKG_VERSION=$PKG_VERSION"
Comment thread
TheElectronWill marked this conversation as resolved.

- name: Checkout the repository
uses: actions/checkout@v4
with:
repository: alumet-dev/packaging

- name: Define the dependency artifact name (RPM)
if: matrix.os.type == 'rpm'
run: echo "DEPS_ARTIFACT_FILE=alumet-agent-${{ inputs.version }}-${{ inputs.release-version }}.${{ matrix.os.name }}.${{ env.ARCH }}.rpm" >> $GITHUB_ENV
run: echo "DEPS_ARTIFACT_FILE=alumet-agent-${{ env.PKG_VERSION }}-${{ inputs.release-version }}.${{ matrix.os.name }}.${{ env.ARCH }}.rpm" >> $GITHUB_ENV

- name: Define the dependency artifact name (DEB)
if: matrix.os.type == 'deb'
run: echo "DEPS_ARTIFACT_FILE=alumet-agent_${{ inputs.version }}-${{ inputs.release-version }}_${{ env.ARCH }}_${{ matrix.os.name }}.deb" >> $GITHUB_ENV
run: echo "DEPS_ARTIFACT_FILE=alumet-agent_${{ env.PKG_VERSION }}-${{ inputs.release-version }}_${{ env.ARCH }}_${{ matrix.os.name }}.deb" >> $GITHUB_ENV

- name: Create the dependency artifacts directory
run: mkdir -p build/deps-artifacts
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,13 @@ jobs:
arch: amd64
version: ${{ github.event.inputs.version }}
revision: ${{ github.event.inputs.revision }}

docker:
uses: ./.github/workflows/build_docker.yaml
with:
arch: x86_64
version: ${{ github.event.inputs.version }}
release-version: ${{ github.event.inputs.revision }}
needs:
- rpm
- deb