Rename spack_recipes_meshing in spack_recipes #19
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'Create spack-cgcore docker image' | |
on: | |
push: | |
tags: | |
- 'spack-cgcore-**' | |
env: | |
REGISTRY: 'ghcr.io' | |
USER_NAME: 'LIHPC-Computational-Geometry' | |
DOCKERFILE_NAME: 'spack-cgcore' | |
jobs: | |
main: | |
name: Create spack-cgcore docker image | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Log into the container registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Extract metadata (tags, labels) for docker | |
id: meta | |
uses: docker/metadata-action@v4 | |
with: | |
images: ${{ env.REGISTRY }}/${{ env.USER_NAME }}/${{ env.DOCKERFILE_NAME }} | |
labels: | | |
org.opencontainers.image.title=lihpccg-spack-cgcore | |
org.opencontainers.image.vendor=CEA | |
tags: | | |
type=raw, latest | |
type=raw, {{date 'YYYYMMDD'}} | |
type=ref, event=tag | |
- name: Build and push image | |
uses: docker/build-push-action@v3 | |
with: | |
file: ./dockerfiles/Dockerfile.${{ env.DOCKERFILE_NAME }} | |
push: true | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} |