-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Test the permissions for a simple build/push | ||
|
||
on: | ||
# allows us to run workflows manually | ||
workflow_dispatch: | ||
pull_request: | ||
|
||
jobs: | ||
build-dependency-img: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
packages: write | ||
|
||
strategy: | ||
matrix: | ||
ubuntu_versions : [ | ||
22.04, | ||
] | ||
compiler : [ | ||
gcc, | ||
] | ||
hdf5_versions : [ | ||
1.10.4, | ||
] | ||
moab_versions : [ | ||
5.3.0, | ||
] | ||
|
||
name: Installing Dependencies | ||
steps: | ||
- name: Log in to the Container registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Installing Dependencies in Docker image & Testing DAGMC | ||
id: build | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: CI/ | ||
target: base | ||
tags: ghcr.io/${{ github.repository_owner }}/dagmc-ci-ubuntu-${{ matrix.ubuntu_versions }}-${{ matrix.compiler}}-ext-hdf5_${{ matrix.hdf5_versions}}-moab_${{ matrix.moab_versions }}/base:test |