Skip to content

Commit

Permalink
build: properly tag images
Browse files Browse the repository at this point in the history
  • Loading branch information
Michsior14 committed Sep 23, 2024
1 parent b460ac0 commit 2b2b312
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,6 @@ jobs:
rapidjson_version=${{ env.RAPIDJSON_VERSION }}
asi_version=${{ env.ASI_VERSION }}
asi_version_mode=${{ env.ASI_VERSION_MODE }}
tags: |
${{ env.AIS_REPOSITORY_NAME }}:node-${{matrix.node}}${{ env.ASI_VERSION_MODE == 'commit' && format('-{0}', env.ASI_VERSION) || ''}}
${{ env.AIS_REPOSITORY_NAME }}:${{ env.UBUNTU_VERSION }}-occt-${{ env.OCCT_VERSION }}-asi-${{ env.ASI_VERSION }}-cgal-${{ env.CGAL_VERSION }}-eigen-${{ env.EIGEN_VERSION }}-node-${{ matrix.node }}
- name: Export digest
run: |
Expand Down Expand Up @@ -123,7 +120,9 @@ jobs:
working-directory: /tmp/digests
run: |
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
$(printf '${{ env.AIS_REPOSITORY_NAME }}@sha256:%s ' *)
$(printf '${{ env.AIS_REPOSITORY_NAME }}@sha256:%s ' *) \
-t ${{ env.AIS_REPOSITORY_NAME }}:node-${{matrix.node}}${{ env.ASI_VERSION_MODE == 'commit' && format('-{0}', env.ASI_VERSION) || ''}} \
-t ${{ env.AIS_REPOSITORY_NAME }}:${{ env.UBUNTU_VERSION }}-occt-${{ env.OCCT_VERSION }}-asi-${{ env.ASI_VERSION }}-cgal-${{ env.CGAL_VERSION }}-eigen-${{ env.EIGEN_VERSION }}-node-${{ matrix.node }}
- name: Inspect image
run: |
Expand Down Expand Up @@ -179,9 +178,6 @@ jobs:
cgal_version=${{ env.CGAL_VERSION }}
eigen_version=${{ env.EIGEN_VERSION }}
nvm_version=${{ env.NVM_VERSION }}
tags: |
${{ env.REPOSITORY_NAME }}:node-${{matrix.node}}
${{ env.REPOSITORY_NAME }}:${{ env.UBUNTU_VERSION }}-occt-${{ env.OCCT_VERSION }}-cgal-${{ env.CGAL_VERSION }}-eigen-${{ env.EIGEN_VERSION }}-node-${{ matrix.node }}
- name: Export digest
run: |
Expand Down Expand Up @@ -229,7 +225,9 @@ jobs:
working-directory: /tmp/digests
run: |
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
$(printf '${{ env.REPOSITORY_NAME }}@sha256:%s ' *)
$(printf '${{ env.REPOSITORY_NAME }}@sha256:%s ' *) \
-t ${{ env.REPOSITORY_NAME }}:node-${{matrix.node}} \
-t ${{ env.REPOSITORY_NAME }}:${{ env.UBUNTU_VERSION }}-occt-${{ env.OCCT_VERSION }}-cgal-${{ env.CGAL_VERSION }}-eigen-${{ env.EIGEN_VERSION }}-node-${{ matrix.node }}
- name: Inspect image
run: |
Expand Down

0 comments on commit 2b2b312

Please sign in to comment.