Skip to content

Commit

Permalink
Try this
Browse files Browse the repository at this point in the history
  • Loading branch information
akondur committed Oct 28, 2024
1 parent b3f836d commit dfd0876
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/graviton-build-test-push-workflow.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and Test
name: Graviton Build and Test
on:
push:
branches:
Expand Down Expand Up @@ -96,7 +96,7 @@ jobs:
export BUILDPLATFORM=linux/arm64
export TARGETOS=linux
export TARGETARCH=arm64
export TARGET_OS_IMAGE=public.ecr.aws/amazonlinux/amazonlinux:2023.0.20211014
export TARGETOSIMAGE=public.ecr.aws/amazonlinux/amazonlinux:2023.0.20211014
docker buildx build --push --platform=linux/arm64,linux/amd64 --tag ${{ secrets.ECR_REPOSITORY }}/${{ env.SPLUNK_OPERATOR_IMAGE_NAME }}:$GITHUB_SHA -f Dockerfile.graviton .
- name: Sign Splunk Operator image with a key
run: |
Expand Down Expand Up @@ -271,7 +271,7 @@ jobs:
export BUILDPLATFORM=linux/arm64
export TARGETOS=linux
export TARGETARCH=arm64
export TARGET_OS_IMAGE=public.ecr.aws/amazonlinux/amazonlinux:2023.0.20211014
export TARGETOSIMAGE=public.ecr.aws/amazonlinux/amazonlinux:2023.0.20211014
export EKS_INSTANCE_TYPE=${{ steps.dotenv.outputs.EKS_INSTANCE_TYPE_GRAVITON }}
make cluster-up
- name: install metric server
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/int-test-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
branches:
- develop
- main
- CSPL_2920
jobs:
build-operator-image:
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.graviton
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ARG TARGETPLATFORM
ARG BUILDPLATFORM
ARG TARGETOS
ARG TARGETARCH
ARG TARGET_OS_IMAGE
ARG TARGETOSIMAGE

WORKDIR /workspace
# Copy the Go Modules manifests
Expand All @@ -28,7 +28,7 @@ RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -a -o manager m

# Use distroless as minimal base image to package the manager binary
# Refer to https://github.com/GoogleContainerTools/distroless for more details
FROM --platform=${BUILDPLATFORM:-linux/amd64} ${TARGET_OS_IMAGE}
FROM --platform=${BUILDPLATFORM:-linux/amd64} ${TARGETOSIMAGE}
ENV OPERATOR=/manager \
USER_UID=1001 \
USER_NAME=nonroot
Expand Down

0 comments on commit dfd0876

Please sign in to comment.