Skip to content

Commit

Permalink
support release kusionctl image (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
amyXia1994 authored Aug 18, 2022
1 parent 62dc842 commit 7c7ef34
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,21 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push image to Docker Hub
# <--- build and push kusion image to Dockerhub --->
- name: Build and push kusion image to Docker Hub
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: kusionstack/kusion:latest,kusionstack/kusion:${{ steps.get_version.outputs.kusion_version }}
# <--- build and push kusionctl image to Dockerhub --->
- name: Build and push kusionctl image to Docker Hub
uses: docker/build-push-action@v3
with:
context: .
file: Dockerfile_kusionctl
push: true
tags: kusionstack/kusionctl:latest,kusionstack/kusionctl:${{ steps.get_version.outputs.kusion_version }}
# <--- Push kusion big packages for multiple platforms to Github Release --->
- name: Release
uses: softprops/action-gh-release@v1
Expand Down
9 changes: 9 additions & 0 deletions Dockerfile_kusionctl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM ubuntu:20.04

COPY _build/bundles/kusion-linux/bin/kusion /kusion/bin/

RUN chmod +x /kusion/bin/kusion

ENV PATH="/kusion/bin:${PATH}"
ENV KUSION_PATH="/kusion"
ENV LANG=en_US.utf8

0 comments on commit 7c7ef34

Please sign in to comment.