Build Focal on GitHub Ubuntu Latest Agent #57
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', '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 }}-focal | |
base-image-include-filter: ${{ matrix.sdk }}-focal-amd64 |