Parallelize CI jobs

This commit is contained in:
Mario Romero 2023-09-24 18:26:07 -03:00
parent 78b53daa69
commit eef34201de

View File

@ -5,7 +5,7 @@ on:
branches: [ main ] branches: [ main ]
jobs: jobs:
dockerbuild: build-base:
runs-on: [ubuntu-latest, amd64] runs-on: [ubuntu-latest, amd64]
container: container:
image: catthehacker/ubuntu:act-latest image: catthehacker/ubuntu:act-latest
@ -42,6 +42,25 @@ jobs:
context: . context: .
file: ./base/web.Dockerfile file: ./base/web.Dockerfile
build-analog-xk:
needs: build-base
runs-on: [ubuntu-latest, amd64]
container:
image: catthehacker/ubuntu:act-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Docker BuildX
uses: docker/setup-buildx-action@v2
- name: Authentication
uses: docker/login-action@v2
with:
registry: git.1159.cl
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build analog-xk desktop - name: Build analog-xk desktop
uses: docker/build-push-action@v4 uses: docker/build-push-action@v4
with: with:
@ -62,6 +81,24 @@ jobs:
context: . context: .
file: ./stacks/analog-xk.Dockerfile file: ./stacks/analog-xk.Dockerfile
build-analog-xm:
needs: build-base
runs-on: [ubuntu-latest, amd64]
container:
image: catthehacker/ubuntu:act-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Docker BuildX
uses: docker/setup-buildx-action@v2
- name: Authentication
uses: docker/login-action@v2
with:
registry: git.1159.cl
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build analog-xm desktop - name: Build analog-xm desktop
uses: docker/build-push-action@v4 uses: docker/build-push-action@v4
with: with:
@ -82,6 +119,25 @@ jobs:
context: . context: .
file: ./stacks/analog-xm.Dockerfile file: ./stacks/analog-xm.Dockerfile
build-analog-heavy:
needs: build-base
runs-on: [ubuntu-latest, amd64]
container:
image: catthehacker/ubuntu:act-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Docker BuildX
uses: docker/setup-buildx-action@v2
- name: Authentication
uses: docker/login-action@v2
with:
registry: git.1159.cl
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build analog-heavy desktop - name: Build analog-heavy desktop
uses: docker/build-push-action@v4 uses: docker/build-push-action@v4
with: with:
@ -102,6 +158,25 @@ jobs:
context: . context: .
file: ./stacks/analog-heavy.Dockerfile file: ./stacks/analog-heavy.Dockerfile
build-digital-ator:
needs: build-base
runs-on: [ubuntu-latest, amd64]
container:
image: catthehacker/ubuntu:act-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Docker BuildX
uses: docker/setup-buildx-action@v2
- name: Authentication
uses: docker/login-action@v2
with:
registry: git.1159.cl
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build digital-ator desktop - name: Build digital-ator desktop
uses: docker/build-push-action@v4 uses: docker/build-push-action@v4
with: with:
@ -122,6 +197,25 @@ jobs:
context: . context: .
file: ./stacks/digital-ator.Dockerfile file: ./stacks/digital-ator.Dockerfile
build-digital-icarus:
needs: build-base
runs-on: [ubuntu-latest, amd64]
container:
image: catthehacker/ubuntu:act-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Docker BuildX
uses: docker/setup-buildx-action@v2
- name: Authentication
uses: docker/login-action@v2
with:
registry: git.1159.cl
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build digital-icarus desktop - name: Build digital-icarus desktop
uses: docker/build-push-action@v4 uses: docker/build-push-action@v4
with: with:
@ -142,6 +236,25 @@ jobs:
context: . context: .
file: ./stacks/digital-icarus.Dockerfile file: ./stacks/digital-icarus.Dockerfile
build-digital-heavy:
needs: build-base
runs-on: [ubuntu-latest, amd64]
container:
image: catthehacker/ubuntu:act-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Docker BuildX
uses: docker/setup-buildx-action@v2
- name: Authentication
uses: docker/login-action@v2
with:
registry: git.1159.cl
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build digital-heavy desktop - name: Build digital-heavy desktop
uses: docker/build-push-action@v4 uses: docker/build-push-action@v4
with: with:
@ -162,6 +275,25 @@ jobs:
context: . context: .
file: ./stacks/digital-heavy.Dockerfile file: ./stacks/digital-heavy.Dockerfile
build-heavy:
needs: build-base
runs-on: [ubuntu-latest, amd64]
container:
image: catthehacker/ubuntu:act-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Docker BuildX
uses: docker/setup-buildx-action@v2
- name: Authentication
uses: docker/login-action@v2
with:
registry: git.1159.cl
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build heavy desktop - name: Build heavy desktop
uses: docker/build-push-action@v4 uses: docker/build-push-action@v4
with: with: