mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 14:56:19 -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:
|
pull_request:
|
||||||
types: [synchronize, opened, reopened]
|
types: [synchronize, opened, reopened]
|
||||||
|
|
||||||
|
env:
|
||||||
|
REGISTRY: ghcr.io
|
||||||
|
IMAGE_NAME: ${{ github.repository }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
main:
|
main:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -33,6 +37,16 @@ jobs:
|
||||||
if: success()
|
if: success()
|
||||||
run: npx grunt prod
|
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
|
- name: UI Tests
|
||||||
if: success()
|
if: success()
|
||||||
run: |
|
run: |
|
||||||
|
|
2
.github/workflows/releases.yml
vendored
2
.github/workflows/releases.yml
vendored
|
@ -72,8 +72,6 @@ jobs:
|
||||||
containerfiles: ./Containerfile
|
containerfiles: ./Containerfile
|
||||||
platforms: linux/arm64, linux/amd64
|
platforms: linux/arm64, linux/amd64
|
||||||
oci: true
|
oci: true
|
||||||
extra-args: |
|
|
||||||
--ulimit nofile=4096:4096
|
|
||||||
|
|
||||||
- name: Upload Release Assets
|
- name: Upload Release Assets
|
||||||
if: success()
|
if: success()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue