-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1162 from openshift-kni/release-flows
ci: numacell: fix dockerfile, add release flow
- Loading branch information
Showing
2 changed files
with
49 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: CI testsuite release flow | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
release-build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v5 | ||
with: | ||
fetch-depth: 0 | ||
|
||
# note the version is hardcoded here because | ||
# we expect to refresh from main branch | ||
- name: Build Image | ||
id: build-image | ||
uses: redhat-actions/buildah-build@v2 | ||
with: | ||
image: numacell-device-plugin | ||
tags: test-ci | ||
dockerfiles: | | ||
./Dockerfile.tests | ||
- name: Push to quay | ||
id: push-to-quay | ||
uses: redhat-actions/push-to-registry@v2 | ||
with: | ||
image: ${{ steps.build-image.outputs.image }} | ||
tags: ${{ steps.build-image.outputs.tags }} | ||
registry: quay.io/openshift-kni | ||
username: ${{ secrets.QUAY_IO_USERNAME }} | ||
password: ${{ secrets.QUAY_IO_ROBOTOKEN }} | ||
|
||
- name: Print image url | ||
run: echo "Image pushed to ${{ steps.push-to-quay.outputs.registry-paths }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
FROM docker.io/golang:1.23 AS builder | ||
|
||
WORKDIR /go/src/github.com/openshift-kni/numaresources-operator | ||
COPY . . | ||
|
||
RUN make build-numacell | ||
|
||
FROM registry.access.redhat.com/ubi9/ubi-minimal | ||
ADD numacell /bin/numacell | ||
COPY --from=builder /go/src/github.com/openshift-kni/numaresources-operator/bin/numacell /bin/numacell | ||
ENTRYPOINT ["/bin/numacell", "-alsologtostderr", "-v", "3"] |