Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove release from sbom-utility-scripts GH action #220

Merged
merged 1 commit into from
Jan 8, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,27 +1,22 @@
name: Build sbom utility scripts image
name: Test sbom utility scripts image

on:
push:
branches:
- main
paths:
- .github/workflows/build-sbom-utility-scripts-image.yml
- .github/workflows/test-sbom-utility-scripts-image.yml
- sbom-utility-scripts/**

pull_request:
branches:
- main
paths:
- .github/workflows/build-sbom-utility-scripts-image.yml
- .github/workflows/test-sbom-utility-scripts-image.yml
- sbom-utility-scripts/**


env:
REGISTRY: quay.io/redhat-appstudio
IMAGE_NAME: sbom-utility-scripts-image

jobs:
build:
test:
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -56,25 +51,3 @@ jobs:
python3 -m pip install tox
cd ./sbom-utility-scripts/scripts/add-image-reference-script/
tox

- name: Build Image
id: build-image
uses: redhat-actions/buildah-build@v2
with:
image: ${{ env.IMAGE_NAME }}
tags: |
${{ github.sha }}
latest
context: ./sbom-utility-scripts
containerfiles: |
./sbom-utility-scripts/Dockerfile

- name: Push to Quay
if: github.event_name == 'push' # don't push image from PR
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.build-image.outputs.image }}
tags: ${{ steps.build-image.outputs.tags }}
registry: ${{ env.REGISTRY }}
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}
Loading