-
Notifications
You must be signed in to change notification settings - Fork 3
46 lines (39 loc) · 1.23 KB
/
container.yaml
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
41
42
43
44
45
46
name: Create Docker Container
on:
workflow_dispatch:
jobs:
create:
name: Create Dockerfile
runs-on: ubuntu-latest
steps:
- name: Checkout Spack-stack
uses: actions/checkout@v4
with:
repository: JCSDA/spack-stack
submodules: true
ref: 1.5.1
- name: Create Docker File
run: |
export SPACK_ROOT=${{ github.workspace }}/spack-stack/spack
source setup.sh
spack stack create ctr --name=ufs-coastal-app --template=ufs-weather-model docker-ubuntu-gcc-openmpi
cd envs/ufs-coastal-app
spack containerize > Dockerfile
cat Dockerfile
echo $PATH
echo ${{ github.workspace }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and Push
uses: docker/build-push-action@v5
with:
context: envs/ufs-coastal-app
push: true
tags: turuncu/ufs-coastal-app:latest