Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update github yaml #49

Merged
merged 4 commits into from
May 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions .github/workflows/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,18 @@ jobs:
id: login-ecr
uses: aws-actions/amazon-ecr-login@62f4f872db3836360b72999f4b87f1ff13310f3a

- name: Create Password file
run: |
touch ./packages/claim-backend/db_password.txt
echo $DB_PASSWORD > ./packages/claim-backend/db_password.txt
env:
DB_PASSWORD: ${{ secrets.DB_PASSWORD }}

- name: Setup docker image
id: docker-image
run: |
repository=$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]')
# repository=$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]')
repository=liskhq/lisk-token-claim
echo "repository=$repository" >> $GITHUB_OUTPUT
echo "image=${{ steps.login-ecr.outputs.registry }}/$repository:${{ github.sha }}" >> $GITHUB_OUTPUT

Expand All @@ -60,7 +68,8 @@ jobs:
uses: aws-actions/amazon-ecs-render-task-definition@c804dfbdd57f713b6c079302a4c01db7017a36fc
with:
task-definition: task-definition.json
container-name: ${{ github.event.repository.name }}
# container-name: ${{ github.event.repository.name }}
container-name: lisk-token-claim
image: ${{ steps.docker-image.outputs.image }}

- name: Deploy Amazon ECS task definition
Expand Down
Loading