Skip to content

Commit

Permalink
Make CI sed more specific (#7024)
Browse files Browse the repository at this point in the history
  • Loading branch information
theoilie authored Dec 23, 2023
1 parent 02a7126 commit 389724e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ steps:
git clone --branch stage https://github.com/AudiusProject/audius-docker-compose.git audius-docker-compose
cd audius-docker-compose
last_release_commit=$(git log --format=format:%H --grep='^release-v.*auto-deploy$' -1)
sed -i "s/{TAG:-.*}/{TAG:-$CIRCLE_SHA1}/" creator-node/docker-compose*.yml
sed -i "s/{TAG:-.*}/{TAG:-$CIRCLE_SHA1}/" discovery-provider/docker-compose*.yml
sed -i "s/{TAG:-.*}/{TAG:-$CIRCLE_SHA1}/" identity-service/docker-compose*.yml
sed -i "s/\({TAG:-\)[^}]*\}/\1$CIRCLE_SHA1}/" creator-node/docker-compose*.yml
sed -i "s/\({TAG:-\)[^}]*\}/\1$CIRCLE_SHA1}/" discovery-provider/docker-compose*.yml
sed -i "s/\({TAG:-\)[^}]*\}/\1$CIRCLE_SHA1}/" identity-service/docker-compose*.yml
git add */docker-compose*.yml
git commit -m "$CIRCLE_BRANCH auto-deploy"
git push origin stage
Expand Down
2 changes: 1 addition & 1 deletion .circleci/src/jobs/deploy-stage-nodes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ steps:
command: |
git clone --branch stage https://github.com/AudiusProject/audius-docker-compose.git audius-docker-compose
cd audius-docker-compose
sed -i "s/{TAG:-.*}/{TAG:-$CIRCLE_SHA1}/" << parameters.service >>/docker-compose*.yml
sed -i "s/\({TAG:-\)[^}]*\}/\1$CIRCLE_SHA1}/" << parameters.service >>/docker-compose*.yml
git add */docker-compose*.yml
git commit -m "Update tag to $CIRCLE_SHA1 for << parameters.service >>"
git push origin stage
Expand Down

0 comments on commit 389724e

Please sign in to comment.