70 lines
2.0 KiB
YAML
70 lines
2.0 KiB
YAML
name: Docker Builders
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- '**'
|
|
workflow_dispatch:
|
|
|
|
env:
|
|
BRANCH_NAME: ${{ github.ref_name }}
|
|
BASE_BUILDER_TAG: ${{ vars.CI_REGISTRY_IMAGE }}/linuxbasebuilder:${{ github.ref_name }}
|
|
CPP_BUILDER_TAG: ${{ vars.CI_REGISTRY_IMAGE }}/linuxcppbuilder:${{ github.ref_name }}
|
|
BIGFOOT_BUILDER_TAG: ${{ vars.CI_REGISTRY_IMAGE }}/linuxbigfootbuilder:${{ github.ref_name }}
|
|
BIGFOOT_COVERAGE_BUILDER_TAG: ${{ vars.CI_REGISTRY_IMAGE }}/linuxbigfootcoveragebuilder:${{ github.ref_name }}
|
|
|
|
jobs:
|
|
build-base-builder:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 360
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
- name: Login to the Container registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: ${{ vars.CI_REGISTRY }}
|
|
username: ${{ secrets.CI_USERNAME }}
|
|
password: ${{ secrets.CI_TOKEN }}
|
|
|
|
- name: Build and push base builder
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
context: ./Linux/BaseBuilder
|
|
push: true
|
|
tags: ${{ env.BASE_BUILDER_TAG }}
|
|
|
|
build-cpp-builder:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 360
|
|
needs: build-base-builder
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
- name: Login to the Container registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: ${{ vars.CI_REGISTRY }}
|
|
username: ${{ secrets.CI_USERNAME }}
|
|
password: ${{ secrets.CI_TOKEN }}
|
|
|
|
- name: Build and push cpp builder
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
context: ./Linux/CPPBuilder
|
|
push: true
|
|
tags: ${{ env.CPP_BUILDER_TAG }}
|
|
build-args: |
|
|
BASE_BUILDER=${{ env.BASE_BUILDER_TAG }}
|
|
CONAN_PROFILE_BRANCH=${{ env.BRANCH_NAME }}
|