Skip to content

Commit

Permalink
Merge pull request #220 from konflux-ci/remove-sbom-utility-scripts-g…
Browse files Browse the repository at this point in the history
…h-action

remove release from sbom-utility-scripts GH action
  • Loading branch information
tnevrlka authored Jan 8, 2025
2 parents c8362a6 + 7f9eae5 commit 2eade46
Showing 1 changed file with 4 additions and 31 deletions.
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 }}

0 comments on commit 2eade46

Please sign in to comment.