-
Notifications
You must be signed in to change notification settings - Fork 64
39 lines (32 loc) · 981 Bytes
/
docker.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
name: Docker image for Windows build
on:
push:
paths:
- "docker/opensuse-mingw"
- ".github/workflows/docker.yml"
jobs:
docker_publish:
name: Docker build image publish
runs-on: ubuntu-latest
strategy:
matrix:
openfoam_version: [v2206]
steps:
- uses: actions/checkout@master
with:
fetch-depth: 0
- name: Log in to the Container registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push to GitHub Packages ${{matrix.openfoam_version}}
uses: docker/build-push-action@v1
with:
registry: ghcr.io
tags: openfoam-${{matrix.openfoam_version}}-opensuse-mingw
dockerfile: docker/opensuse-mingw
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
build_args: OPENFOAM_BRANCH=OpenFOAM-${{matrix.openfoam_version}}