76 lines
2.2 KiB
YAML
76 lines
2.2 KiB
YAML
name: Docker Builders
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- '**'
|
|
workflow_dispatch:
|
|
|
|
env:
|
|
DOCKER_TLS_CERTDIR: "/certs"
|
|
|
|
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
|
|
container:
|
|
image: docker:29.1.5-dind
|
|
options: --privileged
|
|
services:
|
|
docker:
|
|
image: docker:29.1.5-dind
|
|
options: --privileged
|
|
steps:
|
|
- name: Install Node.js
|
|
run: apk add --no-cache nodejs npm
|
|
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Login to the Container registry
|
|
uses: docker/login-action@v2
|
|
with:
|
|
registry: ${{ vars.CI_REGISTRY }}
|
|
username: ${{ secrets.CI_USERNAME }}
|
|
password: ${{ secrets.CI_TOKEN }}
|
|
|
|
- name: Build Builder
|
|
run: docker build -t "$BASE_BUILDER_TAG" ./Linux/BaseBuilder
|
|
|
|
- name: Push Builder
|
|
run: docker push "$BASE_BUILDER_TAG"
|
|
|
|
build-cpp-builder:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 360
|
|
container:
|
|
image: docker:29.1.5-dind
|
|
options: --privileged
|
|
services:
|
|
docker:
|
|
image: docker:29.1.5-dind
|
|
options: --privileged
|
|
steps:
|
|
- name: Install Node.js
|
|
run: apk add --no-cache nodejs npm
|
|
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Login to the Container registry
|
|
uses: docker/login-action@v2
|
|
with:
|
|
registry: ${{ vars.CI_REGISTRY }}
|
|
username: ${{ secrets.CI_USERNAME }}
|
|
password: ${{ secrets.CI_TOKEN }}
|
|
|
|
- name: Build Builder
|
|
run: docker build -t "$CPP_BUILDER_TAG" ./Linux/CPPBuilder --build-arg BASE_BUILDER="$BASE_BUILDER_TAG" --build-arg CONAN_PROFILE_BRANCH=${{ github.ref_name }}
|
|
|
|
- name: Push Builder
|
|
run: docker push "$CPP_BUILDER_TAG" |