-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
11f7682
commit bfb0664
Showing
7 changed files
with
101 additions
and
10 deletions.
There are no files selected for viewing
File renamed without changes.
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,19 @@ | ||
name: validate-ci | ||
on: | ||
push: | ||
branches: | ||
- release/v* | ||
pull_request: | ||
types: | ||
- opened | ||
- reopened | ||
- synchronize | ||
jobs: | ||
pr-build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: ci | ||
run: | | ||
make ci |
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,53 @@ | ||
name: Push to Master | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*.*.*" # Matches any tag that starts with 'v' and follows semantic versioning | ||
- "v*.*.*-ent*" | ||
|
||
jobs: | ||
build-and-deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Login to Dockerhub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- name: CI | ||
env: | ||
CROSS: "true" | ||
run: make ci | ||
- name: Docker meta | ||
id: meta | ||
uses: docker/metadata-action@v5 | ||
with: | ||
images: ${{ vars.DOCKER_REPO || github.repository }} | ||
tags: | | ||
type=ref,event=tag | ||
type=ref,event=branch | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Build to Dockerhub | ||
uses: docker/build-push-action@v6 | ||
with: | ||
platforms: linux/amd64,linux/arm64/v8 | ||
file: package/Dockerfile | ||
context: . | ||
labels: ${{ steps.meta.outputs.labels }} | ||
tags: "${{ steps.meta.outputs.tags }}" | ||
push: true | ||
- name: checksum | ||
run: | | ||
cd dist/artifacts | ||
sha256sum ./* > sha256sum.txt | ||
- name: Release | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
files: "dist/artifacts/*" | ||
draft: true |
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
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,9 +1,11 @@ | ||
FROM registry.suse.com/bci/bci-base:15.4 | ||
ARG TARGETPLATFORM | ||
ENV TARGETPATH=${TARGETPLATFORM:-"."} | ||
RUN zypper -n update && \ | ||
zypper -n clean -a && \ | ||
rm -rf /tmp/* /var/tmp/* /usr/share/doc/packages/* | ||
RUN useradd --uid 1007 ack-operator | ||
ENV KUBECONFIG /home/ack-operator/.kube/config | ||
COPY bin/ack-operator /usr/bin/ | ||
COPY bin/${TARGETPATH}/ack-operator /usr/bin/ | ||
USER 1007 | ||
ENTRYPOINT ["ack-operator"] |
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
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