diff --git a/.github/workflows/_build.yaml b/.github/workflows/_build.yaml index 91e85424b..924f65ae0 100644 --- a/.github/workflows/_build.yaml +++ b/.github/workflows/_build.yaml @@ -17,6 +17,9 @@ on: required: false description: "target environment" default: staging + secrets: + aws-ecr-repo-name: + required: true jobs: build: @@ -46,7 +49,7 @@ jobs: with: push: true builder: ${{ steps.buildx.outputs.name }} - tags: ${{ steps.login-ecr.outputs.registry }}/${{ secrets.AWS_ECR_REPO_NAME }}:${{ inputs.deploy-env }}-${{ inputs.image-tags }} + tags: ${{ steps.login-ecr.outputs.registry }}/${{ secrets.aws-ecr-repo-name }}:${{ inputs.deploy-env }}-${{ inputs.image-tags }} file: ./Dockerfile context: ./ cache-from: type=gha diff --git a/.github/workflows/_check.yaml b/.github/workflows/_check.yaml index ce8859ac6..af7184282 100644 --- a/.github/workflows/_check.yaml +++ b/.github/workflows/_check.yaml @@ -76,7 +76,7 @@ jobs: - name: Set up Ruby 3.0.6 uses: ruby/setup-ruby@v1 with: - ruby-version: 3.0.6 + ruby-version: ${{ inputs.ruby-version }} bundler-cache: true - name: setup Node diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 6100759cc..ba407848d 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -50,6 +50,8 @@ jobs: with: image-tags: "${{ needs.release.outputs.tag_name }}" deploy-env: "${{ needs.create-deploy-env.outputs.deploy-env }}" + secrets: + aws-ecr-repo-name: ${{ secrets.AWS_ECR_REPO_NAME }} stg: needs: