From 0ecbc89695232f3f8f3129eae7abe552d36ce121 Mon Sep 17 00:00:00 2001 From: cloudforet-admin Date: Sat, 6 Jan 2024 15:08:52 +0900 Subject: [PATCH] [CI] Deploy CI --- .github/workflows/dispatch_release.yaml | 28 ++++++++++++------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/dispatch_release.yaml b/.github/workflows/dispatch_release.yaml index 43bbc6a..db175e5 100644 --- a/.github/workflows/dispatch_release.yaml +++ b/.github/workflows/dispatch_release.yaml @@ -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' @@ -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 @@ -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 @@ -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