Skip to content
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
5 changes: 4 additions & 1 deletion .github/workflows/operator-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
GO_VERSION: 1.23.6
PLATFORMS: linux/amd64,linux/arm64

# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu.
jobs:
Expand Down Expand Up @@ -122,6 +123,8 @@ jobs:

- name: Build the operator container image
id: build
with:
platforms: ${{ env.PLATFORMS }}
run: |
apt-get update && apt-get install -y make git jq
cd operator
Expand All @@ -148,7 +151,7 @@ jobs:
--build-arg VERSION=${OPERATOR_VERSION} \
--build-arg GO_VERSION=${GO_VERSION} \
--push \
--platform linux/amd64 \
--platform ${{ env.platforms }} \
${TAGS@L} \
--metadata-file=metadata.json \
-f ../containers/operator.Dockerfile .
Expand Down
9 changes: 1 addition & 8 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,6 @@
# LICENSE END
#







default:
tags:
- baseos-infra
Expand All @@ -35,7 +29,7 @@ variables:
KUBERNETES_MEMORY_LIMIT: "6Gi"
KUBERNETES_MEMORY_REQUEST: "3Gi"
GO_VERSION: 1.23.4
ARCH_LIST: "linux/amd64"
ARCH_LIST: "linux/amd64,linux/arm64"

workflow:
rules:
Expand Down Expand Up @@ -125,7 +119,6 @@ mirror-agent-image:
DOCKER_TLS_CERTDIR: "/certs"
DOCKER_TLS_VERIFY: 1
DOCKER_CERT_PATH: "$DOCKER_TLS_CERTDIR/client"
ARCH_LIST: "linux/amd64,linux/arm64" # TODO: until operator has both archs override agent to use both
before_script:
- echo "{\"auths\":{\"${NVCR_REGISTRY}\":{\"auth\":\"$(printf "%s:%s" "${NVCR_REGISTRY_USER}" "${NVCR_REGISTRY_PASSWORD}" | base64 | tr -d '\n')\"},\"${GHCR_REGISTRY}\":{\"auth\":\"$(printf "%s:%s" "${GHCR_REGISTRY_USER}" "${GHCR_REGISTRY_PASSWORD}" | base64 | tr -d '\n')\"}}}" > config.json
script:
Expand Down