Skip to content

Commit

Permalink
Build container on PR (but don't publish) to verify Containerfile syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
AshCorr committed Jan 30, 2024
1 parent 3057105 commit 6b222d9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/pull_requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
pull_request:
types: [synchronize, opened, reopened]

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
main:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -33,6 +37,16 @@ jobs:
if: success()
run: npx grunt prod

- name: Production Image Build
if: success()
id: build-image
uses: redhat-actions/buildah-build@v2
with:
image: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
containerfiles: ./Containerfile
platforms: linux/arm64, linux/amd64
oci: true

- name: UI Tests
if: success()
run: |
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@ jobs:
containerfiles: ./Containerfile
platforms: linux/arm64, linux/amd64
oci: true
extra-args: |
--ulimit nofile=4096:4096

- name: Upload Release Assets
if: success()
Expand Down

0 comments on commit 6b222d9

Please sign in to comment.