Skip to content

Commit 67269b5

Browse files
authored
Merge pull request #100 from leafok/main
Update workflow
2 parents 970a043 + 093bbe8 commit 67269b5

4 files changed

Lines changed: 62 additions & 5 deletions

File tree

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Build and Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*.*.*"
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
permissions:
18+
contents: write # Allows the action to create and write to the release
19+
20+
steps:
21+
- uses: actions/checkout@v4
22+
23+
- name: autogen
24+
run: autoreconf --install --force
25+
26+
- name: Install dependencies
27+
run: |
28+
sudo apt-get update
29+
sudo apt-get install -y libssh-dev libsystemd-dev
30+
31+
- name: configure
32+
run: ./configure
33+
34+
- name: Run make
35+
run: make
36+
37+
- name: Run check
38+
run: make check
39+
40+
- name: Run distcheck
41+
run: make distcheck
42+
43+
- name: Create Release and Upload Assets
44+
uses: softprops/action-gh-release@v2
45+
with:
46+
draft: true
47+
prerelease: true
48+
files: |
49+
lbbs-*.tar.gz

.github/workflows/docker-image.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ name: Docker Image CI
22

33
on:
44
push:
5-
branches: [ "main" ]
5+
branches:
6+
- "main"
7+
- "v*.*"
68

79
concurrency:
810
group: ${{ github.workflow }}-${{ github.ref }}

.github/workflows/docker-publish.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@
1010
name: Publish Docker image
1111

1212
on:
13-
release:
14-
types: [published]
13+
push:
14+
tags:
15+
- "v*.*.*"
1516

1617
concurrency:
1718
group: ${{ github.workflow }}-${{ github.ref }}
@@ -60,6 +61,8 @@ jobs:
6061
context: .
6162
file: ./Dockerfile/dockerfile.bbsd
6263
push: true
64+
provenance: true
65+
sbom: true
6366
tags: |
6467
${{ env.BBSD_IMAGE }}:${{ github.ref_name }}
6568
${{ env.BBSD_IMAGE }}:latest

.github/workflows/makefile.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@ name: Makefile CI
22

33
on:
44
push:
5-
branches: [ "v1.7" ]
5+
branches:
6+
- "main"
7+
- "v*.*"
68
pull_request:
7-
branches: [ "v1.7" ]
9+
branches:
10+
- "main"
811

912
concurrency:
1013
group: ${{ github.workflow }}-${{ github.ref }}

0 commit comments

Comments
 (0)