Skip to content

chore(k8s): use the main tag by default #8

chore(k8s): use the main tag by default

chore(k8s): use the main tag by default #8

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-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 }}