Skip to content

Packages used by documentation removed #23

Packages used by documentation removed

Packages used by documentation removed #23

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 }}