Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Use local job defs for scheduled jobs #861

Merged
merged 1 commit into from
Feb 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 0 additions & 31 deletions .github/workflows/build-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,37 +16,6 @@ on:
types: [opened, synchronize]

jobs:
# build_all_images_using_makefile:
# name: Build all images using Makefile
# runs-on: ubuntu-latest
# # Default: 360 minutes
# timeout-minutes: 20
#
# steps:
# - name: Print Docker version
# run: docker --version
#
# - name: Check out code into the Go module directory
# uses: actions/checkout@v3
#
# # Mark the current working directory as a safe directory in git to
# # resolve "dubious ownership" complaints.
# #
# # https://docs.github.com/en/actions/learn-github-actions/variables#default-environment-variables
# # https://confluence.atlassian.com/bbkb/git-command-returns-fatal-error-about-the-repository-being-owned-by-someone-else-1167744132.html
# # https://github.com/actions/runner-images/issues/6775
# # https://github.com/actions/checkout/issues/766
# - name: Mark the current working directory as a safe directory in git
# # run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
# run: git config --global --add safe.directory "${PWD}"
#
# # bsdmainutils provides "column" which is used by the Makefile
# - name: Install Ubuntu packages
# run: sudo apt-get update && sudo apt-get install -y --no-install-recommends make gcc bsdmainutils
#
# - name: Build images using project Makefile
# run: make build

build_stable_image_using_makefile:
name: Build stable image using Makefile
runs-on: ubuntu-latest
Expand Down
33 changes: 30 additions & 3 deletions .github/workflows/scheduled-monthly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,33 @@ on:
- cron: "30 4 1 * *"

jobs:
lint:
name: Monthly Tasks
uses: atc0005/shared-project-resources/.github/workflows/scheduled-monthly.yml@master
build_all_images_using_makefile:
name: Build all images using Makefile
runs-on: ubuntu-latest
# Default: 360 minutes
timeout-minutes: 20

steps:
- name: Print Docker version
run: docker --version

- name: Check out code into the Go module directory
uses: actions/checkout@v3

# Mark the current working directory as a safe directory in git to
# resolve "dubious ownership" complaints.
#
# https://docs.github.com/en/actions/learn-github-actions/variables#default-environment-variables
# https://confluence.atlassian.com/bbkb/git-command-returns-fatal-error-about-the-repository-being-owned-by-someone-else-1167744132.html
# https://github.com/actions/runner-images/issues/6775
# https://github.com/actions/checkout/issues/766
- name: Mark the current working directory as a safe directory in git
# run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
run: git config --global --add safe.directory "${PWD}"

# bsdmainutils provides "column" which is used by the Makefile
- name: Install Ubuntu packages
run: sudo apt-get update && sudo apt-get install -y --no-install-recommends make gcc bsdmainutils

- name: Build images using project Makefile
run: make build
4 changes: 2 additions & 2 deletions .github/workflows/scheduled-weekly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ on:

jobs:
lint:
name: Weekly Tasks
uses: atc0005/shared-project-resources/.github/workflows/scheduled-weekly.yml@master
name: Lint
uses: atc0005/shared-project-resources/.github/workflows/lint-project-files.yml@master