Skip to content

Commit

Permalink
fix: action add secret
Browse files Browse the repository at this point in the history
  • Loading branch information
ayuki-joto committed Nov 9, 2023
1 parent d82847d commit f1524e7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/_build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ on:
required: false
description: "target environment"
default: staging
secrets:
aws-ecr-repo-name:
required: true

jobs:
build:
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/_check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f1524e7

Please sign in to comment.