Skip to content
This repository was archived by the owner on Feb 11, 2025. It is now read-only.

Commit e1f2229

Browse files
committed
mod workflows
1 parent 85ff111 commit e1f2229

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/build-pr.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ jobs:
4848
${{ env.IMAGE_BASE }}:kaniko-sidecar-pr-${{ github.event.pull_request.number }}
4949
5050
- name: link child image to current pr
51-
run: sed -i 's/FROM.*/FROM ${{ env.IMAGE_BASE }}:base-pr-${{ github.event.pull_request.number }}/g' images/ansible-k8s/Dockerfile
51+
run: |
52+
sed -i "s/FROM.*/FROM ${{ env.IMAGE_BASE }}:base-pr-${{ github.event.pull_request.number }}/g" images/ansible-k8s/Dockerfile
5253
5354
- name: Build github-actions-runner:ansible-k8s
5455
uses: docker/build-push-action@v2

.github/workflows/create-release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ jobs:
5757
${{ env.IMAGE_BASE }}:kaniko-sidecar-${{needs.create_release.outputs.version}}
5858
5959
- name: link child image to current version
60-
run: sed -i 's/FROM.*/FROM ${{ env.IMAGE_BASE }}:base-pr-${{ github.event.pull_request.number }}/g' images/ansible-k8s/Dockerfile
60+
run: |
61+
sed -i "s/FROM.*/FROM ${{ env.IMAGE_BASE }}:base-${{ needs.create_release.outputs.version }}/g" images/ansible-k8s/Dockerfile
6162
6263
- name: Build github-actions-runner:ansible-k8s
6364
uses: docker/build-push-action@v2

0 commit comments

Comments
 (0)