Skip to content

Commit

Permalink
get config from gh
Browse files Browse the repository at this point in the history
  • Loading branch information
mabulgu committed Mar 21, 2024
1 parent c7b2fe4 commit 6cb5cac
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ jobs:
uses: pre-commit/action@v3.0.0

- name: Retrieve the kubeconfig and decode it to a file
env:
KUBECONFIG_CONTENT: ${{ secrets.KUBECONFIG }}
run: |
mkdir ~/.kube
curl https://raw.githubusercontent.com/SystemCraftsman/strimzi-kafka-cli/main/tests/files/yaml/kubeconfig > ~/.kube/config
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ jobs:
path: .
dockerfile: ./Dockerfile
push: true
build-args: |
"KUBECONFIG_CONTENT=${{ secrets.KUBECONFIG }}"

upload_build_data_artifact:
runs-on: ubuntu-latest
Expand Down
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
FROM python:3.11.6-alpine
ARG KUBECONFIG_CONTENT
ENV KUBECONFIG_CONTENT ${KUBECONFIG_CONTENT}
USER root
RUN adduser -D kfkuser
RUN pip install strimzi-kafka-cli==0.1.0a76
USER kfkuser
RUN mkdir /home/kfkuser/.kube
RUN echo "$KUBECONFIG_CONTENT" > /home/kfkuser/.kube/config
RUN curl https://raw.githubusercontent.com/SystemCraftsman/strimzi-kafka-cli/main/tests/files/yaml/kubeconfig > /home/kfkuser/.kube/config
RUN kfk --version

0 comments on commit 6cb5cac

Please sign in to comment.