Skip to content

Commit

Permalink
fix dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
mabulgu committed Nov 21, 2023
1 parent d494b6f commit 2ae3f7f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,6 @@ jobs:
- name: Install dependencies
run: make install-dependencies

- name: Retrieve the kubeconfig and decode it to a file
env:
KUBECONFIG: ${{ secrets.KUBECONFIG }}
run: |
mkdir ~/.kube
echo "$KUBECONFIG" > ~/.kube/config
- name: Build
run: make build

Expand All @@ -56,6 +49,14 @@ jobs:
uses: jakejarvis/wait-action@master
with:
time: '180s'

- name: Retrieve the kubeconfig and decode it to a file
env:
KUBECONFIG: ${{ secrets.KUBECONFIG }}
run: |
mkdir ~/.kube
echo "$KUBECONFIG" > ~/.kube/config
- name: Bake and push image
uses: docker/build-push-action@v1.1.0
with:
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ USER root
RUN adduser -D kfkuser
RUN pip install strimzi-kafka-cli==0.1.0a72
USER kfkuser
RUN mkdir ~/.kube
COPY ~/.kube/config /home/kfkuser/.kube/config
RUN kfk --version

0 comments on commit 2ae3f7f

Please sign in to comment.