Skip to content

Commit

Permalink
use new build
Browse files Browse the repository at this point in the history
  • Loading branch information
raoulh committed Feb 13, 2024
1 parent 1bbb755 commit 1773970
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 81 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/build.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,28 +1,42 @@
name: Build release deb package
name: Build dev and release deb package

on:
push:
branches: [ main ]
workflow_dispatch:
inputs:
version:
description: 'Package version (x.x.x)'
vincrement:
description: 'Package version increment (major.minor.xxx)'
required: true
default: 'patch'
type: choice
options:
- major
- minor
- patch

jobs:
build-and-push-deb-pkg:
name: Build deb package and push to repositories
runs-on: ubuntu-latest

steps:
- name: Checkout the repo
uses: actions/checkout@v2
- name: Checkout code
uses: actions/checkout@v3

- name: Calaos Action Bump Version
id: calaos_version
uses: calaos/action-bump-version@2
with:
version_fragment: ${{ github.event.inputs.vincrement || 'prerelease' }}

- name: Build package
uses: addnab/docker-run-action@v3
with:
image: ghcr.io/calaos/debian_deb_build_base
options: -v ${{ github.workspace }}:/work
run: |
/build-deb.sh ${{ github.event.inputs.version }}
/build-deb.sh ${{ steps.calaos_version.outputs.version_bumped }}
- name: Upload artifacts
uses: actions/upload-artifact@v2
Expand All @@ -33,15 +47,15 @@ jobs:
- name: Create Tag
uses: negz/create-tag@v1
with:
version: ${{ github.event.inputs.version }}
version: ${{ steps.calaos_version.outputs.version_bumped }}
token: ${{ secrets.ACTION_DISPATCH }}

- name: Create a Release
uses: meeDamian/[email protected]
with:
token: ${{ secrets.ACTION_DISPATCH }}
tag: ${{ github.event.inputs.version }}
name: ${{ github.event.inputs.version }}
tag: ${{ steps.calaos_version.outputs.version_bumped }}
name: ${{ steps.calaos_version.outputs.version_bumped }}
files: pkg/*.deb
gzip: false

Expand Down
27 changes: 0 additions & 27 deletions .github/workflows/build_dev.yml

This file was deleted.

27 changes: 0 additions & 27 deletions .github/workflows/build_release.yml

This file was deleted.

0 comments on commit 1773970

Please sign in to comment.