Skip to content

Commit

Permalink
testing split build
Browse files Browse the repository at this point in the history
  • Loading branch information
Federico Meloni committed Nov 20, 2024
1 parent 0450997 commit 0a33313
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
- 'master'
- 'main'
- 'key4hep*'
- '2.10'
tags:
- 'v*'
pull_request:
Expand All @@ -28,19 +29,13 @@ jobs:
- name: Login to DockerHub
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GHCR_TOKEN }}
- name: lowercase owner name
run: |
echo "OWNER_LC=${OWNER,,}" >>${GITHUB_ENV}
env:
OWNER: '${{ github.repository_owner }}'
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Docker Meta
id: meta
uses: docker/metadata-action@v4
with:
images: ghcr.io/${{env.OWNER_LC}}/mucoll-dummy
images: ${{ secrets.DOCKERHUB_REPOSITORY }}/mucoll-dummy
- name: Build and Push
id: docker_build
uses: docker/build-push-action@v6
Expand All @@ -50,8 +45,8 @@ jobs:
file: ./${{matrix.os.dir}}/Dockerfile-spack
build-args: |
VERSION=${{ steps.meta.outputs.version }}
REPOSITORY=ghcr.io/${{env.OWNER_LC}}
tags: ghcr.io/${{env.OWNER_LC}}/mucoll-spack:${{steps.meta.outputs.version}}-${{matrix.os.suffix}}
REPOSITORY=ghcr.io/${{ secrets.DOCKERHUB_REPOSITORY }}
tags: ${{ secrets.DOCKERHUB_REPOSITORY }}/mucoll-spack:${{steps.meta.outputs.version}}-${{matrix.os.suffix}}
build-base:
runs-on: ubuntu-latest
needs: build-spack
Expand Down

0 comments on commit 0a33313

Please sign in to comment.