-
Notifications
You must be signed in to change notification settings - Fork 1
59 lines (59 loc) · 1.89 KB
/
Copy pathci.yml
File metadata and controls
59 lines (59 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
---
name: CI
on: [workflow_dispatch, push, pull_request] # yamllint disable-line rule:truthy
jobs:
omnilint:
uses: lpenz/omnilint/.github/workflows/omnilint.yml@v0.6.0
rust-test:
uses: lpenz/ghworkflow-rust/.github/workflows/rust-test.yml@v0.30.0
with:
coveralls: true
deb: true
docker-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7.0.1
- uses: docker/build-push-action@v7.3.0
with:
push: false
commit-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7.0.1
with:
fetch-depth: 0
- uses: commit-check/commit-check-action@v2.15.0
with:
branch: false
rust-deploy:
needs: [omnilint, commit-check, rust-test, docker-build]
uses: lpenz/ghworkflow-rust/.github/workflows/rust-deploy.yml@v0.30.0
with:
deb: true
release_files: |
github-workflows-update github-workflows-update.1
publish_cratesio: true
publish_github_release: true
publish_packagecloud_repository_deb: |
["debian/debian/trixie",
"debian/debian/forky",
"ubuntu/ubuntu/noble"]
secrets:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
PACKAGECLOUD_TOKEN: ${{ secrets.PACKAGECLOUD_TOKEN }}
dockerhub-deploy:
needs: [omnilint, commit-check, rust-test, docker-build]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7.0.1
- id: version
uses: docker://lpenz/ghaction-version-gen:0.20.0
- uses: docker/login-action@v4.6.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: docker/build-push-action@v7.3.0
with:
push: ${{ steps.version.outputs.version_docker_ci != 'null' }}
tags: ${{ github.repository }}:${{ steps.version.outputs.version_docker_ci
}}