mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-23 00:06:17 -04:00
Build container on PR (but don't publish) to verify Containerfile syntax
This commit is contained in:
parent
0da30813da
commit
3b265322e0
2 changed files with 14 additions and 2 deletions
14
.github/workflows/pull_requests.yml
vendored
14
.github/workflows/pull_requests.yml
vendored
|
@ -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
|
||||
|
@ -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: |
|
||||
|
|
2
.github/workflows/releases.yml
vendored
2
.github/workflows/releases.yml
vendored
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue