Skip to content

Commit

Permalink
feat: customer ga runner
Browse files Browse the repository at this point in the history
  • Loading branch information
keskiju committed Dec 1, 2024
1 parent 4bc5c38 commit 6600526
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,17 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build autoheal
uses: docker/build-push-action@v2
if: ${{ env.NAME == 'autoheal' || env.NAME == '' }}
with:
builder: ${{ steps.buildx.outputs.name }}
context: .
file: ./autoheal/Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: ghcr.io/taitounited/autoheal:${{ env.VERSION }}

- name: Build cypress
uses: docker/build-push-action@v2
if: ${{ env.NAME == 'cypress' || env.NAME == '' }}
Expand All @@ -71,13 +82,13 @@ jobs:
push: true
tags: ghcr.io/taitounited/minio:${{ env.VERSION }}

- name: Build autoheal
- name: Build runner
uses: docker/build-push-action@v2
if: ${{ env.NAME == 'autoheal' || env.NAME == '' }}
if: ${{ env.NAME == 'runner' || env.NAME == '' }}
with:
builder: ${{ steps.buildx.outputs.name }}
context: .
file: ./autoheal/Dockerfile
file: ./runner/Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: ghcr.io/taitounited/autoheal:${{ env.VERSION }}
tags: ghcr.io/taitounited/runner:${{ env.VERSION }}
4 changes: 4 additions & 0 deletions runner/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM ghcr.io/actions/actions-runner:latest

# Pull taito-cli:ci-gcp-dev on start
RUN sed -i '/#!\/bin\/bash/a docker pull ghcr.io/taitounited/taito-cli:ci-gcp-dev' /home/runner/run.sh

0 comments on commit 6600526

Please sign in to comment.