Skip to content

Commit 6600526

Browse files
committed
feat: customer ga runner
1 parent 4bc5c38 commit 6600526

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

.github/workflows/build.yaml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,17 @@ jobs:
4949
username: ${{ github.actor }}
5050
password: ${{ secrets.GITHUB_TOKEN }}
5151

52+
- name: Build autoheal
53+
uses: docker/build-push-action@v2
54+
if: ${{ env.NAME == 'autoheal' || env.NAME == '' }}
55+
with:
56+
builder: ${{ steps.buildx.outputs.name }}
57+
context: .
58+
file: ./autoheal/Dockerfile
59+
platforms: linux/amd64,linux/arm64
60+
push: true
61+
tags: ghcr.io/taitounited/autoheal:${{ env.VERSION }}
62+
5263
- name: Build cypress
5364
uses: docker/build-push-action@v2
5465
if: ${{ env.NAME == 'cypress' || env.NAME == '' }}
@@ -71,13 +82,13 @@ jobs:
7182
push: true
7283
tags: ghcr.io/taitounited/minio:${{ env.VERSION }}
7384

74-
- name: Build autoheal
85+
- name: Build runner
7586
uses: docker/build-push-action@v2
76-
if: ${{ env.NAME == 'autoheal' || env.NAME == '' }}
87+
if: ${{ env.NAME == 'runner' || env.NAME == '' }}
7788
with:
7889
builder: ${{ steps.buildx.outputs.name }}
7990
context: .
80-
file: ./autoheal/Dockerfile
91+
file: ./runner/Dockerfile
8192
platforms: linux/amd64,linux/arm64
8293
push: true
83-
tags: ghcr.io/taitounited/autoheal:${{ env.VERSION }}
94+
tags: ghcr.io/taitounited/runner:${{ env.VERSION }}

runner/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
FROM ghcr.io/actions/actions-runner:latest
2+
3+
# Pull taito-cli:ci-gcp-dev on start
4+
RUN sed -i '/#!\/bin\/bash/a docker pull ghcr.io/taitounited/taito-cli:ci-gcp-dev' /home/runner/run.sh

0 commit comments

Comments
 (0)