Skip to content

chore(CI): extract scanning to the build docker GHA #5

chore(CI): extract scanning to the build docker GHA

chore(CI): extract scanning to the build docker GHA #5

Workflow file for this run

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-name: ghcr.io/meysam81/click-odoo-contrib
image-extra-tags: ghcr.io/meysam81/click-odoo-contrib:${{ github.run_id }}
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 }}