This repository has been archived by the owner on Feb 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
65 lines (65 loc) · 2.01 KB
/
ci.yml
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
60
61
62
63
64
65
---
name: CI
on: [ workflow_dispatch, push, pull_request ]
jobs:
omnilint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.5.3
- uses: docker://lpenz/omnilint:0.5.1
docker-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.5.3
with:
repository: lpenz/ogle
- uses: actions/checkout@v3.5.3
with:
path: ./ghaction-rust-coverage
- run: docker pull rust:slim
- uses: ./ghaction-rust-coverage
- run: grep '^SF:' lcov.info
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.5.3
with:
path: ghaction-rust-coverage
- uses: actions/checkout@v3.5.3
with:
repository: lpenz/ogle
path: ogle
fetch-depth: 0
- uses: ./ghaction-rust-coverage
with:
working_directory: ogle
publish-dockerhub:
needs: [ omnilint, docker-build ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.5.3
- id: version
uses: docker://lpenz/ghaction-version-gen:0.13.2
- uses: docker/setup-buildx-action@v2.9.1
- uses: docker/login-action@v2.2.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
if: ${{ steps.version.outputs.version_docker_ci != 'null' }}
- uses: docker/build-push-action@v4.1.1
with:
push: ${{ steps.version.outputs.version_docker_ci != 'null' }}
tags: ${{ github.repository }}:${{ steps.version.outputs.version_docker_ci }}
publish-github-release:
needs: [ publish-dockerhub ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.5.3
- id: version
uses: docker://lpenz/ghaction-version-gen:0.13.2
- name: publish github release
uses: "marvinpinto/action-automatic-releases@v1.2.1"
if: steps.version.outputs.version_tagged != ''
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
prerelease: false