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
14 changes: 12 additions & 2 deletions .github/actions/build/dpkg/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ runs:
package: osctrl-${{ inputs.osctrl_component }}
package_root: ".debpkg-osctrl-${{ inputs.osctrl_component }}-${{ inputs.commit_sha }}-${{ inputs.go_os }}-${{ inputs.go_arch }}"
maintainer: jmpsec/osctrl
version: ${{ github.ref }} # refs/tags/v*.*.*
version: ${{ inputs.release_version_tag }}
arch: ${{ inputs.go_arch }}
desc: "DEB package for osctrl-${OSCTRL_COMPONENT}-${OSCTRL_VERSION} Commit SHA: ${COMMIT_SHA}"

Expand All @@ -71,11 +71,21 @@ runs:
desc: "DEB package for osctrl-${OSCTRL_COMPONENT}-${OSCTRL_VERSION} Commit SHA: ${COMMIT_SHA}"

########################### Upload DEBs ###########################
- name: Debug DEB package creation
if: startsWith(github.ref, 'refs/tags/')
run: |
echo "DEB package file name: ${{ steps.create_deb_tagged_pkgs.outputs.file_name }}"
echo "Release version tag: ${{ inputs.release_version_tag }}"
echo "Component: ${{ inputs.osctrl_component }}"
echo "Arch: ${{ inputs.go_arch }}"
ls -la *.deb || echo "No DEB files found"
shell: bash

- name: Upload osctrl DEBs for tagged version
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
if: startsWith(github.ref, 'refs/tags/')
with:
name: osctrl-${{ inputs.osctrl_component }}_${{ inputs.release_version_tag }}-${{ inputs.commit_sha }}_${{ inputs.go_arch }}.deb
name: osctrl-${{ inputs.osctrl_component }}_${{ inputs.release_version_tag }}_${{ inputs.go_arch }}.deb
path: ${{ steps.create_deb_tagged_pkgs.outputs.file_name }}
retention-days: 10

Expand Down
13 changes: 10 additions & 3 deletions .github/actions/tagged_release/github/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,20 @@ runs:
osctrl-${{ inputs.osctrl_component }}-${{ inputs.release_version_tag }}-${{ inputs.go_os }}-${{ inputs.go_arch }}.exe

########################### Download osctrl DEB package ###########################
- name: List available artifacts
if: ${{ inputs.go_os }} == 'linux'
run: |
echo "Looking for DEB package: osctrl-${{ inputs.osctrl_component }}_${{ inputs.release_version_tag }}_${{ inputs.go_arch }}.deb"
echo "Release version tag: ${{ inputs.release_version_tag }}"
echo "Component: ${{ inputs.osctrl_component }}"
echo "Arch: ${{ inputs.go_arch }}"
shell: bash

- name: Download osctrl DEB package
if: ${{ inputs.go_os }} == 'linux'
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
with:
name: osctrl-${{ inputs.osctrl_component }}_${{ inputs.release_version_tag }}-${{ inputs.commit_sha }}_${{ inputs.go_arch }}.deb
fail-on-not-found: false
continue-on-error: true
name: osctrl-${{ inputs.osctrl_component }}_${{ inputs.release_version_tag }}_${{ inputs.go_arch }}.deb

########################### Release ###########################
- name: Release
Expand Down