Skip to content

Commit

Permalink
Update CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien CAFFET committed May 27, 2024
1 parent a8e1ff7 commit 377c137
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Faucet deployment
name: Feed deployment

on:
push:
Expand All @@ -13,8 +13,8 @@ permissions:
env:
PRODUCT: nuklaivm
COMPONENT: backend
APPLICATION: faucet
API_PORT: 10591
APPLICATION: feed
API_PORT: 10592
AWS_REGION: eu-west-1
BUILD_FOLDER: build

Expand Down
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ COPY . .
# Build the Go application
RUN go build -o feed

# Create .env file
RUN chmod +x ./infra/scripts/startup.sh
ENTRYPOINT [ "./infra/scripts/startup.sh" ]

# Expose the application port
EXPOSE 10592

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@
"valueFrom": "arn:aws:ssm:${AWS_REGION}:${AWS_ACCOUNT_ID}:parameter/${ENV}/${PRODUCT}/${COMPONENT}/rpc_node_url_nuklai"
},
{
"name": "PRIVATE_KEY_BYTES",
"valueFrom": "arn:aws:ssm:${AWS_REGION}:${AWS_ACCOUNT_ID}:parameter/${ENV}/${PRODUCT}/${COMPONENT}/faucet/private_key_bytes"
"name": "RECIPIENT",
"valueFrom": "arn:aws:ssm:${AWS_REGION}:${AWS_ACCOUNT_ID}:parameter/${ENV}/${PRODUCT}/${COMPONENT}/feed/recipient"
},
{
"name": "ADMIN_TOKEN",
"valueFrom": "arn:aws:ssm:${AWS_REGION}:${AWS_ACCOUNT_ID}:parameter/${ENV}/${PRODUCT}/${COMPONENT}/faucet/admin_token"
"valueFrom": "arn:aws:ssm:${AWS_REGION}:${AWS_ACCOUNT_ID}:parameter/${ENV}/${PRODUCT}/${COMPONENT}/feed/admin_token"
}
],
"logConfiguration": {
Expand Down
2 changes: 1 addition & 1 deletion infra/scripts/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
APP_DIR="/app"

echo "NUKLAI_RPC="$NUKLAI_RPC"" >> ${APP_DIR}/.env
echo "PRIVATE_KEY_BYTES="$PRIVATE_KEY_BYTES"" >> ${APP_DIR}/.env
echo "RECIPIENT="$RECIPIENT"" >> ${APP_DIR}/.env
echo "ADMIN_TOKEN="$ADMIN_TOKEN"" >> ${APP_DIR}/.env

echo "${@}" | xargs -I % sh -c '%'

0 comments on commit 377c137

Please sign in to comment.