Skip to content

Bump OpenFOAM version to v2306 #55

Bump OpenFOAM version to v2306

Bump OpenFOAM version to v2306 #55

Workflow file for this run

name: Build and store a Docker image to the GHCR
on:
push:
workflow_dispatch:
jobs:
build-docker:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
- name: Cache Docker layers
uses: actions/cache@v2
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Login to GitHub Container Registry
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push image
id: docker_build
uses: docker/build-push-action@v2
with:
context: ./
file: ./.github/workflows/Dockerfile
builder: ${{ steps.buildx.outputs.name }}
push: true
tags: ghcr.io/precice/openfoam-adapter:latest
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}