Commit 05dec7a 1 parent b2c934e commit 05dec7a Copy full SHA for 05dec7a
File tree 2 files changed +17
-28
lines changed
2 files changed +17
-28
lines changed Original file line number Diff line number Diff line change 1
- name : Publish Docker images
2
- on :
3
- workflow_run :
4
- workflows : [ "Rust" ]
5
- branches : [ "main" ]
6
- types :
7
- - completed
1
+ name : CICD
2
+
3
+ on : [ "push", "pull_request" ]
8
4
9
5
env :
6
+ CARGO_TERM_COLOR : always
10
7
REGISTRY : ghcr.io
11
8
IMAGE_NAME : ${{ github.repository }}
12
9
13
10
jobs :
14
- build :
11
+ tests :
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - uses : actions/checkout@v4
15
+ - run : sudo apt install libpcap-dev libsasl2-dev libssl-dev
16
+ - name : Build
17
+ run : cargo build --verbose
18
+ - name : Run tests
19
+ run : cargo test --verbose
20
+
21
+ docker :
15
22
strategy :
16
23
fail-fast : false
17
24
matrix :
24
31
id-token : write
25
32
26
33
runs-on : ${{ matrix.os }}
27
- if : ${{ github.event.workflow_run.conclusion == 'success' }}
34
+ needs : [ tests ]
28
35
steps :
29
36
- name : Checkout repository
30
37
uses : actions/checkout@v4
51
58
with :
52
59
context : .
53
60
push : true
61
+ provenance : false
54
62
tags : ${{ steps.meta.outputs.tags }}
55
63
labels : ${{ steps.meta.outputs.labels }}
56
64
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments