-
-
Notifications
You must be signed in to change notification settings - Fork 16
55 lines (51 loc) · 1.79 KB
/
BuildGitHubAgentsUbuntuLatest.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Build 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', '8.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@master
env:
GITHUB_TOKEN: ${{ github.token }}
with:
cake-version: tool-manifest
arguments: |
remove-base-image: true
base-image-include-filter: ${{ matrix.sdk }}
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