From e70731aa700793d05f0ffd70bcac53dec739d489 Mon Sep 17 00:00:00 2001 From: Jusong Yu Date: Wed, 19 Jun 2024 01:22:13 +0200 Subject: [PATCH] build all --- .github/workflows/publish.yml | 6 +++--- Dockerfile | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a9e9039..ecd7249 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -4,7 +4,7 @@ name: Publish image to Docker container registries env: # https://github.com/docker/metadata-action?tab=readme-ov-file#environment-variables DOCKER_METADATA_PR_HEAD_SHA: true - REPO_NAME: ${GITHUB_REPOSITORY##*/} + REPO_NAME: quantum-espresso on: workflow_call: @@ -54,6 +54,7 @@ jobs: # e.g. ghcr.io/cnts4sci/python images: ${{ inputs.registry }}/${{ github.repository_owner }}/${{ env.REPO_NAME }} tags: | + type=ref,event=pr type=edge,enable={{is_default_branch}} type=match,pattern=(\d{4}\.\d{4}(-.+)?),group=1 type=raw,value=v${{ env.VERSION }},enable=${{ github.ref_type == 'tag' && startsWith(github.ref_name, 'v') }} @@ -61,8 +62,7 @@ jobs: - name: Determine source image id: image run: | - src=$(echo '${{ inputs.image }}'| jq -cr '.[("${{ env.REPO_NAME }}"|ascii_upcase|sub("-"; "_"; "g")) + "_IMAGE"]') - echo "src=$src" | tee -a "${GITHUB_OUTPUT}" + echo "src=${{ inputs.image }}" | tee -a "${GITHUB_OUTPUT}" - name: Push image uses: akhilerm/tag-push-action@v2.2.0 diff --git a/Dockerfile b/Dockerfile index 6535362..63e4ecd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,7 +24,7 @@ RUN wget -c -O qe.tar.gz https://gitlab.com/QEF/q-e/-/archive/qe-${QE_VERSION}/q tar xf qe.tar.gz -C qe --strip-components=1 && \ cd qe && \ LAPACK_LIBS=/usr/local/lapack/lib/liblapack.a BLAS_LIBS=/usr/local/lapack/lib/librefblas.a ./configure -enable-static && \ - make -j8 pw && \ + make -j8 all && \ make install