Skip to content

Commit

Permalink
allow multiple kustomize versions
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonysterling committed Aug 22, 2023
1 parent 4740ef0 commit 6edf3a3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -244,15 +244,29 @@ jobs:
steps:
- name: checkout repository
uses: actions/checkout@v2
- name: release kustomize
- name: release kustomize v3
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: automationcloud/kustomize
path: ./kustomize
tags: latest
tags: latest,kustomize-v3.9.3
tag_with_sha: true
build-args: |
KUSTOMIZE_VERSION=v3.9.3
- name: release kustomize v5
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: automationcloud/kustomize
path: ./kustomize
tags: kustomize-v5.1.1
tag_with_sha: true
build-args: |
KUSTOMIZE_VERSION=v5.1.1
- name: Notify Slack
if: ${{ success() }}
uses: docker://automationcloud/slack-docker-build-success:latest
Expand Down
3 changes: 2 additions & 1 deletion kustomize/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
FROM alpine:3
RUN apk add --update --no-cache bash ca-certificates curl git jq openssh
RUN ["bin/sh", "-c", "mkdir -p ./src"]
RUN curl --retry 30 --retry-max-time 120 -s -S -L https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize/v3.9.3/kustomize_v3.9.3_linux_amd64.tar.gz | tar -xz -C /usr/bin
ARG KUSTOMIZE_VERSION
RUN curl --retry 30 --retry-max-time 120 -s -S -L https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize/${KUSTOMIZE_VERSION}/kustomize_${KUSTOMIZE_VERSION}_linux_amd64.tar.gz | tar -xz -C /usr/bin
RUN chmod +x /usr/bin/kustomize
COPY ["./src", "/src/"]
RUN chmod +x /src/entrypoint.sh
Expand Down

0 comments on commit 6edf3a3

Please sign in to comment.