From ac0e0838b512c71ab985628f11f85100ab890c6f Mon Sep 17 00:00:00 2001 From: cloudforet-admin Date: Fri, 3 Nov 2023 23:27:08 +0900 Subject: [PATCH] [CI] Deploy CI --- .github/workflows/dispatch_release.yaml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/dispatch_release.yaml b/.github/workflows/dispatch_release.yaml index 646176b..10f3b39 100644 --- a/.github/workflows/dispatch_release.yaml +++ b/.github/workflows/dispatch_release.yaml @@ -10,7 +10,7 @@ on: container_arch: type: choice description: 'choose container architecture' - default: linux/amd64 + default: linux/amd64,linux/arm64 options: - "linux/amd64" - "linux/amd64,linux/arm64" @@ -21,6 +21,7 @@ env: VERSION: ${{ github.event.inputs.version }} PACKAGE_VERSION: ${{ github.event.inputs.version }} SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + BRANCH_NAME: ${{ github.ref_name }} jobs: tagging: @@ -58,7 +59,7 @@ jobs: - name: Set python uses: actions/setup-python@v4 with: - python-version: '3.8' + python-version: '3.8' - name: Install dependencies run: | @@ -73,8 +74,8 @@ jobs: - name: Publish a Python distribution to PyPI uses: pypa/gh-action-pypi-publish@release/v1 with: - user: ${{ secrets.PYPI_USERNAME }} - password: ${{ secrets.PYPI_PASSWORD }} + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }} verbose: true packages-dir: src/dist/ @@ -116,6 +117,7 @@ jobs: tags: cloudforet/${{ github.event.repository.name }}:${{ env.VERSION }} build-args: | PACKAGE_VERSION=${{ env.PACKAGE_VERSION }} + BRANCH_NAME=${{ env.BRANCH_NAME }} - name: Configure AWS credentials uses: aws-actions/configure-aws-credentials@v2 @@ -136,6 +138,7 @@ jobs: tags: ${{ secrets.ECR_REPO }}/${{ github.event.repository.name }}:${{ env.VERSION }} build-args: | PACKAGE_VERSION=${{ env.PACKAGE_VERSION }} + BRANCH_NAME=${{ env.BRANCH_NAME }} - name: Notice when job fails if: failure() @@ -155,4 +158,4 @@ jobs: with: status: ${{job.status}} fields: repo,message,commit,author,action,ref,workflow,job - author_name: Github Action Slack \ No newline at end of file + author_name: Github Action Slack