Skip to content

Commit

Permalink
[CI] Deploy CI
Browse files Browse the repository at this point in the history
  • Loading branch information
admin-cloudforet committed May 11, 2023
1 parent 431f1bc commit a2e0f0c
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/dispatch_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,17 @@ on:
description: 'enter version(x.y.z)'
required: true
default: '1.0.0'
container_arch:
type: choice
description: 'choose container architecture'
default: linux/amd64
options:
- "linux/amd64"
- "linux/amd64,linux/arm64"


env:
ARCH: ${{ github.event.inputs.container_arch }}
BRANCH: ${{ github.event.inputs.branch }}
VERSION: ${{ github.event.inputs.version }}
PACKAGE_VERSION: ${{ github.event.inputs.version }}
Expand Down Expand Up @@ -110,7 +119,7 @@ jobs:
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/amd64,linux/arm64
platforms: ${{ env.ARCH }}
push: true
tags: cloudforet/${{ github.event.repository.name }}:${{ env.VERSION }}

Expand All @@ -128,7 +137,7 @@ jobs:
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/amd64,linux/arm64
platforms: ${{ env.ARCH }}
push: true
tags: ${{ secrets.ECR_REPO }}/${{ github.event.repository.name }}:${{ env.VERSION }}

Expand Down

0 comments on commit a2e0f0c

Please sign in to comment.