Skip to content

Update dependency pluggy to v1.4.0 #29

Update dependency pluggy to v1.4.0

Update dependency pluggy to v1.4.0 #29

Workflow file for this run

name: Source container build
on:
push:
branches:
- main
paths:
- source-container-build/**
pull_request:
branches:
- main
paths:
- source-container-build/**
env:
REGISTRY: quay.io/redhat-appstudio
IMAGE_NAME: build-definitions-source-image-build-utils
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Run checks
run: |
python3 -m pip install tox
cd ./source-container-build/app/
tox
- name: Lint Dockerfile
uses: hadolint/[email protected]
with:
dockerfile: ./source-container-build/Dockerfile
build-image:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build Image
id: build-image
uses: redhat-actions/buildah-build@v2
with:
image: ${{ env.IMAGE_NAME }}
tags: |
latest
${{ github.sha }}
context: ./source-container-build
containerfiles: |
./source-container-build/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 }}