Skip to content

Add cobalt CI

Add cobalt CI #8

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: cobalt CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "dev/cefi" branch
push:
branches: [ "dev/cefi" ]
pull_request:
branches: [ "dev/cefi" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# define container
container:
image: clouden90/1d_mom6_cobalt:base
options: --user root
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout Repository
uses: actions/checkout@v3
# Install wget
- name: Install wget
run: |
apt update
apt install -y wget
# git clone MOM6_OBGC_examples and replace ocean_BGC
- name: git clone MOM6_OBGC_examples
run: |
cd ..
git clone https://github.com/NOAA-CEFI-Regional-Ocean-Modeling/MOM6_OBGC_examples.git --recursive
rm -rf MOM6_OBGC_examples/src/ocean_BGC
cp -r ocean_BGC MOM6_OBGC_examples/src
cd MOM6_OBGC_examples/src/ocean_BGC
git branch
ls /opt