Skip to content

Merge pull request #719 from Automattic/add/sbom #105

Merge pull request #719 from Automattic/add/sbom

Merge pull request #719 from Automattic/add/sbom #105

Workflow file for this run

name: Build Photon
on:
push:
branches:
- master
paths:
- "photon/**"
- ".github/workflows/photon.yml"
- ".github/actions/build-docker-image/**"
pull_request:
paths:
- "photon/**"
- ".github/workflows/photon.yml"
- ".github/actions/build-docker-image/**"
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
push_to_registry:
name: Push Docker image to GitHub Packages
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
pull-requests: write
security-events: write
id-token: write
attestations: write
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Build and push image
uses: ./.github/actions/build-docker-image
with:
context: photon
push: ${{ github.base_ref == null }}
cache-from: type=gha,scope=photon
cache-to: type=gha,mode=max,scope=photon
primaryTag: ghcr.io/automattic/vip-container-images/photon:latest