Skip to content

Commit

Permalink
Add kubectl
Browse files Browse the repository at this point in the history
  • Loading branch information
cosimomeli committed Dec 12, 2024
1 parent 593ed5a commit 74cb011
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
env:
PROVIDER_VERSION: 0.16.0
TERRAFORM_VERSION: 1.8.5
KUBECTL_VERSION: 1.30
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -55,3 +56,4 @@ jobs:
build-args: |
PROVIDER_VERSION=${{env.PROVIDER_VERSION}}
TERRAFORM_VERSION=${{env.TERRAFORM_VERSION}}
KUBECTL_VERSION=${{env.KUBECTL_VERSION}}
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
ARG PROVIDER_VERSION
ARG TERRAFORM_VERSION
ARG KUBECTL_VERSION

FROM hashicorp/terraform:${TERRAFORM_VERSION} as terraform
FROM xpkg.upbound.io/upbound/provider-terraform:v${PROVIDER_VERSION}
FROM bitnami/kubectl:${KUBECTL_VERSION} as kubectl

FROM xpkg.upbound.io/upbound/provider-terraform:v${PROVIDER_VERSION}
COPY --from=terraform /bin/terraform /usr/local/bin/terraform
COPY --from=kubectl /opt/bitnami/kubectl/bin/kubectl /usr/local/bin/

0 comments on commit 74cb011

Please sign in to comment.