Skip to content

Commit

Permalink
Merge pull request #1141 from morucci/container-build-ubi-ci
Browse files Browse the repository at this point in the history
ubi container - add CI workflow to validate the UBI container build
  • Loading branch information
mergify[bot] authored Jan 7, 2025
2 parents 92faaad + 40feccb commit c0e4ff1
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.dhall
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ in { Nix =
}
]
, Docker = mk.makeCompose mk.validate-compose-steps
, DockerUBI = mk.dockerUBI
, Publish-Master-Image =
mk.makePublishMaster
( mk.validate-compose-steps
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/docker-ubi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
jobs:
compose:
name: ubi-container-build-test
runs-on: ubuntu-latest
steps:
- uses: "actions/checkout@v2.4.0"
- name: Build the container image
run: docker build -f DockerfileUBI .
name: DockerUBI
on:
pull_request: {}
19 changes: 19 additions & 0 deletions .github/workflows/mkCI.dhall
Original file line number Diff line number Diff line change
Expand Up @@ -224,4 +224,23 @@ in { GithubActions
}
}
}
, dockerUBI = GithubActions.Workflow::{
, name = "DockerUBI"
, on = GithubActions.On::{
, pull_request = Some GithubActions.PullRequest::{=}
}
, jobs = toMap
{ compose = GithubActions.Job::{
, name = Some "ubi-container-build-test"
, runs-on = GithubActions.RunsOn.Type.ubuntu-latest
, steps =
[ checkout-step
, GithubActions.Step::{
, name = Some "Build the container image"
, run = Some "docker build -f DockerfileUBI ."
}
]
}
}
}
}
1 change: 1 addition & 0 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ codegen-ci:
echo "(./.github/workflows/ci.dhall).NixBuild" | dhall-to-yaml > .github/workflows/nix-build.yaml
echo "(./.github/workflows/ci.dhall).Web" | dhall-to-yaml > .github/workflows/web.yaml
echo "(./.github/workflows/ci.dhall).Docker" | dhall-to-yaml > .github/workflows/docker.yaml
echo "(./.github/workflows/ci.dhall).DockerUBI" | dhall-to-yaml > .github/workflows/docker-ubi.yaml
echo "(./.github/workflows/ci.dhall).Publish-Master-Image" | dhall-to-yaml > .github/workflows/publish-master.yaml
echo "(./.github/workflows/ci.dhall).Publish-Tag-Image" | dhall-to-yaml > .github/workflows/publish-tag.yaml

Expand Down

0 comments on commit c0e4ff1

Please sign in to comment.