Skip to content

Commit

Permalink
fix sed command
Browse files Browse the repository at this point in the history
  • Loading branch information
lnart committed Apr 21, 2024
1 parent 93b37f6 commit 1637be0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/push-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ jobs:
k8s-url: ${{ secrets.KUBE_SERVER_URL }}
k8s-secret: ${{ secrets.KUBE_SERVICE_ACC_SECRET }}
new-tag: ${{github.sha}}
# - name: Replace image tag in Kubernetes deployment file
# run: sed -i 's/IMAGE_TAG_PLACEHOLDER/${{ github.sha }}/g' blueDeployment.yml > blueDeployment.yml
- name: Replace image tag in Kubernetes deployment file
run: sed -i '' 's/IMAGE_TAG_PLACEHOLDER/${{github.sha}}/g' blueDeployment.yml
- uses: actions/checkout@v4
name: checkout deployments
with:
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/blueDeployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec: # rules for the deployment
spec:
containers:
- name: dryagerapi
image: lnart/dryager-backend:3e12960cbd3b4c46a0865ab9b0ad93609aba96be
image: lnart/dryager-backend:IMAGE_TAG_PLACEHOLDER
imagePullPolicy: Always
ports:
- containerPort: 3032
Expand Down

0 comments on commit 1637be0

Please sign in to comment.