From eef34201dea5b5171c4c94d3cafa3c24c55a4a6b Mon Sep 17 00:00:00 2001 From: Mario1159 Date: Sun, 24 Sep 2023 18:26:07 -0300 Subject: [PATCH] Parallelize CI jobs --- .gitea/workflows/release.yml | 134 ++++++++++++++++++++++++++++++++++- 1 file changed, 133 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 0a7ea80..5eadff6 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -5,7 +5,7 @@ on: branches: [ main ] jobs: - dockerbuild: + build-base: runs-on: [ubuntu-latest, amd64] container: image: catthehacker/ubuntu:act-latest @@ -42,6 +42,25 @@ jobs: context: . 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 uses: docker/build-push-action@v4 with: @@ -62,6 +81,24 @@ jobs: context: . 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 uses: docker/build-push-action@v4 with: @@ -82,6 +119,25 @@ jobs: context: . 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 uses: docker/build-push-action@v4 with: @@ -102,6 +158,25 @@ jobs: context: . 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 uses: docker/build-push-action@v4 with: @@ -122,6 +197,25 @@ jobs: context: . 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 uses: docker/build-push-action@v4 with: @@ -142,6 +236,25 @@ jobs: context: . 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 uses: docker/build-push-action@v4 with: @@ -162,6 +275,25 @@ jobs: context: . 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 uses: docker/build-push-action@v4 with: