Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ubi container - add CI workflow to validate the UBI container build #1141

Merged
merged 3 commits into from
Jan 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading