do not merge #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# (C) Copyright Confidential Containers Contributors 2023. | |
# SPDX-License-Identifier: Apache-2.0 | |
# | |
# Build and push project images on pull requests merged. | |
--- | |
name: Publish project images | |
on: | |
push: | |
branches: | |
- 'main' | |
workflow_dispatch: | |
jobs: | |
caa: | |
uses: ./.github/workflows/caa_build_and_push_per_arch.yaml | |
secrets: inherit | |
peerpod-ctrl: | |
uses: ./.github/workflows/peerpod-ctrl_image.yaml | |
if: > | |
github.event_name == 'push' && ( | |
contains(github.event.push.commits.added, 'peerpod-ctrl/') || | |
contains(github.event.push.commits.modified, 'peerpod-ctrl/') || | |
contains(github.event.push.commits.removed, 'peerpod-ctrl/')) | |
with: | |
image_tags: latest,${{ github.sha }} | |
git_ref: ${{ github.sha }} | |
secrets: inherit |