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

Commit ddb7358

Browse files
committed
mod workflows
1 parent 7cfed0b commit ddb7358

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.github/workflows/build-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ 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 "s/FROM.*/FROM ${{ env.IMAGE_BASE }}:base-pr-${{ github.event.pull_request.number }}/g" images/ansible-k8s/Dockerfile
51+
run: sed -i "s/FROM.*/FROM ${{ env.IMAGE_BASE }}:base-pr-${{ github.event.pull_request.number }}/g" images/ansible-k8s/Dockerfile
5252

5353
- name: Build github-actions-runner:ansible-k8s
5454
uses: docker/build-push-action@v2

.github/workflows/create-release.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,18 @@ jobs:
5656
${{ env.IMAGE_BASE }}:kaniko-sidecar-latest
5757
${{ env.IMAGE_BASE }}:kaniko-sidecar-${{needs.create_release.outputs.version}}
5858
59+
- name: link child image to current version
60+
run: sed -i "s/FROM.*/FROM ${{ env.IMAGE_BASE }}:base-${{ needs.create_release.outputs.version }}/g" images/ansible-k8s/Dockerfile
61+
62+
- name: Build github-actions-runner:ansible-k8s
63+
uses: docker/build-push-action@v2
64+
with:
65+
context: ./images/ansible-k8s
66+
push: true
67+
tags: |
68+
${{ env.IMAGE_BASE }}:ansible-k8s-latest
69+
${{ env.IMAGE_BASE }}:ansible-k8s-${{needs.create_release.outputs.version}}
70+
5971
publish_release:
6072
runs-on: ubuntu-latest
6173
needs: [create_release, build]

0 commit comments

Comments
 (0)