ci: parallize build
This commit is contained in:
@@ -30,6 +30,21 @@ jobs:
|
|||||||
tags: |
|
tags: |
|
||||||
git.plabble.org/job79/base:${{ github.ref_name }}
|
git.plabble.org/job79/base:${{ github.ref_name }}
|
||||||
git.plabble.org/job79/base:latest
|
git.plabble.org/job79/base:latest
|
||||||
|
|
||||||
|
go-build:
|
||||||
|
runs-on: job-latest
|
||||||
|
needs: base-build
|
||||||
|
steps:
|
||||||
|
- name: Clone repo
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Setup Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
- name: Login to Registry
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: git.plabble.org
|
||||||
|
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||||
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
- name: Build and push go container
|
- name: Build and push go container
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
@@ -39,6 +54,21 @@ jobs:
|
|||||||
tags: |
|
tags: |
|
||||||
git.plabble.org/job79/go:${{ github.ref_name }}
|
git.plabble.org/job79/go:${{ github.ref_name }}
|
||||||
git.plabble.org/job79/go:latest
|
git.plabble.org/job79/go:latest
|
||||||
|
|
||||||
|
infra-build:
|
||||||
|
runs-on: job-latest
|
||||||
|
needs: base-build
|
||||||
|
steps:
|
||||||
|
- name: Clone repo
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Setup Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
- name: Login to Registry
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: git.plabble.org
|
||||||
|
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||||
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
- name: Build and push infra container
|
- name: Build and push infra container
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
@@ -48,6 +78,20 @@ jobs:
|
|||||||
tags: |
|
tags: |
|
||||||
git.plabble.org/job79/infra:${{ github.ref_name }}
|
git.plabble.org/job79/infra:${{ github.ref_name }}
|
||||||
git.plabble.org/job79/infra:latest
|
git.plabble.org/job79/infra:latest
|
||||||
|
|
||||||
|
kali-build:
|
||||||
|
runs-on: job-latest
|
||||||
|
steps:
|
||||||
|
- name: Clone repo
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Setup Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
- name: Login to Registry
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: git.plabble.org
|
||||||
|
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||||
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
- name: Build and push kali container
|
- name: Build and push kali container
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user