forked from LLNL/sundials
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (37 loc) · 1.1 KB
/
build-ci-containers-nightly.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
name: Containers - nightly spack@develop
on:
workflow_dispatch:
schedule:
- cron: '30 02 * * *'
permissions:
packages: write
jobs:
build_ci_containers:
runs-on: ubuntu-latest
strategy:
matrix:
indexsize: [32, 64]
precision: ['double']
steps:
- name: VM Hardware Info
run: |
cat /proc/cpuinfo
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker images
uses: docker/[email protected]
with:
context: "./docker/sundials-ci/spack-nightly"
build-args: spack_yaml=./int${{ matrix.indexsize }}-${{ matrix.precision }}/spack.yaml
push: true
tags: ghcr.io/llnl/sundials-ci-int${{ matrix.indexsize }}-${{ matrix.precision }}:spack-develop