ImperialCollegeLondon / poreFoam-singlePhase

Direct single-phase flow simulation and pre/post-processing codes
http://www.imperial.ac.uk/earth-science/research/research-groups/perm/research/pore-scale-modelling/
20 stars 17 forks source link

Added a quick deployment solution based on Docker #4

Open Ccccraz opened 7 months ago

Ccccraz commented 7 months ago

The main changes are as follows:

Note

Before merging this request, if you want to publish to docker hub, you need to set a github secret variable to store your username and password for docker hub, as well as cteate a docker repository to store your images

Your secret variable will be used in .github/workflows/buildAndRelease.yml

As shown in the example below, my username and password are stored as DOCKER_USERNAME and DOCKER_PASSWORD, respectively

- name: Log in to Docker Hub
  uses: docker/login-action@v3
  with:
    username: ${{ secrets.DOCKER_USERNAME }}
    password: ${{ secrets.DOCKER_PASSWORD }}

for more infomation, see the doc-github secret

Ccccraz commented 7 months ago

All changes have been tested, you can see my release page and docker hub