Skip to content

18 add oci image build to pipeline #1

18 add oci image build to pipeline

18 add oci image build to pipeline #1

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
# Cancel in progress workflows on pull_requests.
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
# Needed for nx-set-shas when run on the main branch
permissions:
actions: read
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ./.github/actions/nx-affected-target
with:
target: build
build-oci-images:
runs-on: ubuntu-latest
needs: [build]
if: github.event.pull_request.draft != true
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- uses: ./.github/actions/nx-affected-target
with:
target: container
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ./.github/actions/nx-affected-target
with:
target: test
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ./.github/actions/nx-affected-target
with:
target: lint