Skip to content

Commit

Permalink
Merge pull request #53 from devlead/feature/separate-cbl-mariner2.0-a…
Browse files Browse the repository at this point in the history
…md64

Split Mariner into separate GH Build
  • Loading branch information
devlead authored Sep 13, 2023
2 parents b362a0a + 1975ca4 commit ff1e747
Show file tree
Hide file tree
Showing 4 changed files with 145 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/BuildGitHubAgentsUbuntuLatest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,11 @@ jobs:
base-image-exclude-filter: ${{ matrix.sdk }}-nanoserver-1
base-image-exclude-filter: ${{ matrix.sdk }}-nanoserver-2
base-image-exclude-filter: ${{ matrix.sdk }}-windowsservercore-ltsc2019
base-image-exclude-filter: ${{ matrix.sdk }}-cbl-mariner
base-image-exclude-filter: ${{ matrix.sdk }}-cbl-mariner-amd64
base-image-exclude-filter: ${{ matrix.sdk }}-cbl-mariner2.0
base-image-exclude-filter: ${{ matrix.sdk }}-cbl-mariner2.0-amd64
base-image-exclude-filter: ${{ matrix.sdk }}-focal
base-image-exclude-filter: ${{ matrix.sdk }}-focal-amd64
base-image-exclude-filter: ${{ matrix.sdk }}-jammy
base-image-exclude-filter: ${{ matrix.sdk }}-jammy-amd64
45 changes: 45 additions & 0 deletions .github/workflows/BuildGitHubAgentsUbuntuLatestFocal.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Build Focal on GitHub Ubuntu Latest Agent
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
- develop
- hotfix/*
schedule:
- cron: '0 7 * * WED'

jobs:
build:
name: Build Images
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
sdk: ['6.0', '7.0']
steps:
- if: github.ref == 'refs/heads/main'
name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Get the sources
uses: actions/checkout@v3

- name: Install .NET Core SDK
uses: actions/setup-dotnet@v3

- name: Run Cake script
uses: cake-build/cake-action@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
cake-version: tool-manifest
arguments: |
remove-base-image: true
base-image-include-filter: ${{ matrix.sdk }}-focal
base-image-include-filter: ${{ matrix.sdk }}-focal-amd64
45 changes: 45 additions & 0 deletions .github/workflows/BuildGitHubAgentsUbuntuLatestJammy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Build Jammy on GitHub Ubuntu Latest Agent
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
- develop
- hotfix/*
schedule:
- cron: '0 7 * * WED'

jobs:
build:
name: Build Images
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
sdk: ['6.0', '7.0']
steps:
- if: github.ref == 'refs/heads/main'
name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Get the sources
uses: actions/checkout@v3

- name: Install .NET Core SDK
uses: actions/setup-dotnet@v3

- name: Run Cake script
uses: cake-build/cake-action@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
cake-version: tool-manifest
arguments: |
remove-base-image: true
base-image-include-filter: ${{ matrix.sdk }}-cbl-jammy
base-image-include-filter: ${{ matrix.sdk }}-cbl-jammy-amd64
47 changes: 47 additions & 0 deletions .github/workflows/BuildGitHubAgentsUbuntuLatestMariner.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Build Mariner on GitHub Ubuntu Latest Agent
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
- develop
- hotfix/*
schedule:
- cron: '0 7 * * WED'

jobs:
build:
name: Build Images
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
sdk: ['6.0', '7.0']
steps:
- if: github.ref == 'refs/heads/main'
name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Get the sources
uses: actions/checkout@v3

- name: Install .NET Core SDK
uses: actions/setup-dotnet@v3

- name: Run Cake script
uses: cake-build/cake-action@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
cake-version: tool-manifest
arguments: |
remove-base-image: true
base-image-include-filter: ${{ matrix.sdk }}-cbl-mariner
base-image-include-filter: ${{ matrix.sdk }}-cbl-mariner-amd64
base-image-include-filter: ${{ matrix.sdk }}-cbl-mariner2.0
base-image-include-filter: ${{ matrix.sdk }}-cbl-mariner2.0-amd64

0 comments on commit ff1e747

Please sign in to comment.