-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (41 loc) · 1.18 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
name: ci
concurrency:
cancel-in-progress: ${{ ! startsWith(github.ref, 'refs/tags/v') }}
group: ci-${{ github.ref_name }}-${{ github.event_name }}
on:
pull_request:
branches:
- main
push:
branches:
- main
tags:
- v*
permissions:
contents: read
packages: write
actions: read
security-events: write
jobs:
build-edge:
if: |
contains(fromJson('["push","pull_request"]'), github.event_name) &&
github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- name: Build docker
uses: meysam81/infra/actions/build-docker@main
with:
image-extra-tags: ghcr.io/meysam81/click-odoo-contrib:${{ github.run_id }}
image-name: ghcr.io/meysam81/click-odoo-contrib
kubescape: "true"
kubescape-upload-sarif: "true"
build-stable:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- name: Build docker
uses: meysam81/infra/actions/build-docker@main
with:
image-name: ghcr.io/meysam81/click-odoo-contrib
image-extra-tags: ghcr.io/meysam81/click-odoo-contrib:${{ github.ref_name }}