Skip to content

Commit

Permalink
Update workflows to build on ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry Wallace committed Jan 27, 2025
1 parent 3534f31 commit 280d6bf
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/CDImage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ jobs:
- os: alma9
file: doc/MaCh3DockerFiles/Alma9/Dockerfile
tag_latest: alma9latest
- os: Ubuntu22.04
file: doc/MaCh3DockerFiles/Ubuntu22.04/Dockerfile
tag: ubuntulatest


name: Image CD ${{ matrix.os }}

Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/CIBuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ name: Build CI
# The events that trigger the workflow
on:
pull_request:
branches: [ develop ]

branches: [ develop ]
permissions:
contents: read
packages: write
Expand All @@ -22,9 +22,9 @@ jobs:
- os: Alma9
file: doc/MaCh3DockerFiles/Alma9/Dockerfile
tag: alma9latest
# - os: Rocky9
# file: doc/MaCh3DockerFiles/Rocky9/Dockerfile
# tag: rocky9latest
- os: Ubuntu22.04
file: doc/MaCh3DockerFiles/Ubuntu22.04/Dockerfile
tag: ubuntulatest

name: Build CI ${{ matrix.os }}

Expand Down
49 changes: 49 additions & 0 deletions .github/workflows/CoreDevelopTest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Runs weekly build against develop idea is to give us
# a reasonable warning when DUNE develop and core
# are incompatible! Also pushes container for easy testing

name: Weekly Core Integration

on:
schedule:
- cron: '0 0 * * 0' # Might as well do everything Sunday at midngiht

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false # KS: Prevents cancellation of remaining jobs if one fails
matrix:
include:
- os: alma9
file: doc/MaCh3DockerFiles/Alma9/Dockerfile
tag_latest: alma9latest

name: Image CD ${{ matrix.os }}

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Log in to GitHub Container Registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin

- name: Build Docker image
run: |
docker build . \
--file "${{ matrix.file }}" \
--tag "ghcr.io/dune/mach3:${{ matrix.tag_latest }}_core_develop" \
--build-arg MACH3_DUNE_VERSION="develop" \
--build-arg MACH3_CORE_VERSION=develop
- name: Push Docker image
run: |
docker push "ghcr.io/dune/mach3:${{ matrix.tag_latest }}_core_develop"
xw
- name: Delete old images
uses: actions/delete-package-versions@v5
with:
package-name: 'mach3'
package-type: 'container'
min-versions-to-keep: 5
delete-only-untagged-versions: 'true'

0 comments on commit 280d6bf

Please sign in to comment.