This repository was archived by the owner on Feb 11, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +23
-8
lines changed Expand file tree Collapse file tree 2 files changed +23
-8
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,9 @@ name: Build PR
33on :
44 pull_request :
55
6+ env :
7+ IMAGE_BASE : " ghcr.io/${{ github.repository_owner }}/github-actions-runner"
8+
69jobs :
710 generate_infos :
811 uses : fullstack-devops/actions/.github/workflows/generate-build-infos.yml@main
@@ -32,14 +35,14 @@ jobs:
3235 uses : docker/build-push-action@v2
3336 with :
3437 context : ./images/base
35- push : false
38+ push : true
3639 tags : |
37- ghcr.io/${{ github.repository_owner }}/github-actions-runner :base-pr-${{ github.event.pull_request.number }}
40+ ${IMAGE_BASE} :base-pr-${{ github.event.pull_request.number }}
3841
3942 - name : Build github-actions-runner:kaniko-sidecar
4043 uses : docker/build-push-action@v2
4144 with :
4245 context : ./images/kaniko-sidecar
43- push : false
46+ push : true
4447 tags : |
45- ghcr.io/${{ github.repository_owner }}/github-actions-runner :kaniko-sidecar-pr-${{ github.event.pull_request.number }}
48+ ${IMAGE_BASE} :kaniko-sidecar-pr-${{ github.event.pull_request.number }}
Original file line number Diff line number Diff line change 99 branches :
1010 - " main"
1111
12+ env :
13+ IMAGE_BASE : " ghcr.io/${{ github.repository_owner }}/github-actions-runner"
14+
1215jobs :
1316 create_release :
1417 uses : fullstack-devops/actions/.github/workflows/create-release.yml@main
@@ -34,14 +37,23 @@ jobs:
3437 - name : Set up Docker Buildx
3538 uses : docker/setup-buildx-action@v1
3639
37- - name : Build and push github-runner-base
40+ - name : Build github-actions-runner:base
41+ uses : docker/build-push-action@v2
42+ with :
43+ context : ./images/base
44+ push : true
45+ tags : |
46+ ${IMAGE_BASE}:latest
47+ ${IMAGE_BASE}:base-latest
48+ ${IMAGE_BASE}:base-${{needs.create_release.outputs.version}}
49+
50+ - name : Build github-actions-runner:kaniko-sidecar
3851 uses : docker/build-push-action@v2
3952 with :
40- context : ./
53+ context : ./images/kaniko-sidecar
4154 push : true
4255 tags : |
43- ghcr.io/${{ github.repository_owner }}/github-runner-base:latest
44- ghcr.io/${{ github.repository_owner }}/github-runner-base:${{needs.create_release.outputs.version}}
56+ ${IMAGE_BASE}:kaniko-sidecar-${{needs.create_release.outputs.version}}
4557
4658 publish_release :
4759 runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments