-
Notifications
You must be signed in to change notification settings - Fork 2
33 lines (32 loc) · 932 Bytes
/
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
---
name: CI
on: [ push, pull_request ]
jobs:
omnilint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: docker://lpenz/omnilint:v0.2
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: docker build .
dockerhub:
needs: [ build, omnilint ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- id: version
uses: docker://lpenz/ghaction-version-gen:0.4
- uses: docker/setup-qemu-action@v1
- uses: docker/setup-buildx-action@v1
- uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: docker/build-push-action@v2
if: steps.version.outputs.version_tagged != ''
with:
push: true
tags: ${{ github.repository }}:${{ steps.version.outputs.version_tagged }}