Skip to content

Commit

Permalink
Merge pull request #23 from wireapp/staging
Browse files Browse the repository at this point in the history
Fix sed not modifying image version
  • Loading branch information
LukasForst authored Apr 30, 2020
2 parents 7b8a94d + fd4ed6e commit a9406a9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,13 @@ jobs:
SERVICE: ${{ env.SERVICE_NAME }}
VERSION: ${{ env.RELEASE_VERSION }}
run: |
# go to directory with configuration
cd "rubicon/prod/services/$SERVICE"
export SED_PREPARED=$(echo $IMAGE | awk '{ gsub("/", "\\/", $1); print $1 }')
# escape literals for the sed and set output with GCR
export SED_PREPARED=$(echo $IMAGE | awk '{ gsub("/", "\\/", $1); print "eu.gcr.io\\/"$1 }')
# update final yaml
sed -i".bak" "s/image: $SED_PREPARED.*/image: $SED_PREPARED:$VERSION/g" "$SERVICE.yaml"
# delete bakup file
rm "$SERVICE.yaml.bak"
# Setup gcloud CLI
Expand Down

0 comments on commit a9406a9

Please sign in to comment.