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 Jan 6, 2024
1 parent cdfefac commit 0ecbc89
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/dispatch_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
version:
description: 'enter version(x.y.z)'
required: true
default: 1.0.0
default: '2.0.0'
container_arch:
type: choice
description: 'choose container architecture'
Expand Down Expand Up @@ -34,7 +34,7 @@ jobs:
steps:
- name: check version format
run: |
if [[ !(${{ env.VERSION }} =~ ^v[0-9]\.[0-9]?[0-9]\.[0-9]?[0-9]$) ]];
if [[ !(${{ env.VERSION }} =~ ^[0-9]\.[0-9]?[0-9]\.[0-9]?[0-9]$) ]];
then
echo "You entered an incorrect version format."
exit 1
Expand Down Expand Up @@ -110,7 +110,7 @@ jobs:
- name: get service name
run: |
echo "SERVICE=$(echo ${{ github.repository }} | cut -d '/' -f2)" >> $GITHUB_ENV
- name: Set up QEMU
uses: docker/setup-qemu-action@v2

Expand All @@ -120,25 +120,25 @@ jobs:
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
username: ${{ secrets.CLOUDFORET_DOCKER_USERNAME }}
password: ${{ secrets.CLOUDFORET_DOCKER_PASSWORD }}

- name: Build and push to pyengine
uses: docker/build-push-action@v4
with:
context: .
platform: ${{ env.ARCH }}
push: true
platforms: ${{ env.ARCH }}
push: true
tags: pyengine/${{ env.SERVICE }}:${{ env.VERSION }}
- name: Build and push to spaceone

- name: Build and push to cloudforet
uses: docker/build-push-action@v4
with:
context: .
platform: ${{ env.ARCH }}
push: true
tags: spaceone/${{ env.SERVICE }}:${{ env.VERSION }}
platforms: ${{ env.ARCH }}
push: true
tags: cloudforet/${{ env.SERVICE }}:${{ env.VERSION }}

- name: Notice when job fails
if: failure()
uses: 8398a7/action-slack@v3.2.0
Expand Down

0 comments on commit 0ecbc89

Please sign in to comment.