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
51 lines (51 loc) · 1.67 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
---
name: CI
on: [ workflow_dispatch, push, pull_request ]
jobs:
omnilint:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: docker://lpenz/omnilint:0.5.1
docker-build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
repository: lpenz/ogle
- uses: actions/[email protected]
with:
path: ./ghaction-rust-coverage
- run: docker pull rust:slim
- uses: ./ghaction-rust-coverage
- run: grep '^SF:' lcov.info
publish-dockerhub:
needs: [ omnilint, docker-build ]
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- id: version
uses: docker://lpenz/ghaction-version-gen:0.13.2
- uses: docker/[email protected]
- uses: docker/[email protected]
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
if: ${{ steps.version.outputs.version_docker_ci != 'null' }}
- uses: docker/[email protected]
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/[email protected]
- id: version
uses: docker://lpenz/ghaction-version-gen:0.13.2
- name: publish github release
uses: "marvinpinto/[email protected]"
if: steps.version.outputs.version_tagged != ''
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
prerelease: false