diff --git a/.github/workflows/build-assets.yml b/.github/workflows/build-assets.yml index aebc22cc54a..bf15d449aee 100644 --- a/.github/workflows/build-assets.yml +++ b/.github/workflows/build-assets.yml @@ -34,6 +34,7 @@ jobs: internal_ref: ${{ steps.vars.outputs.internal_ref }} community_tag: ${{ steps.vars.outputs.community_tag }} internal_tag: ${{ steps.vars.outputs.internal_tag }} + hpcc_version: ${{ steps.vars.outputs.hpcc_version }} candidate_base_branch: ${{ steps.vars.outputs.candidate_base_branch }} candidate_branch: ${{ steps.vars.outputs.candidate_branch }} cmake_docker_config: ${{ steps.vars.outputs.cmake_docker_config }} @@ -54,6 +55,7 @@ jobs: community_tag=$(echo $community_ref | cut -d'/' -f3) echo "community_tag=$community_tag" >> $GITHUB_OUTPUT echo "internal_tag=$(echo $community_tag | sed 's/community/internal/')" >> $GITHUB_OUTPUT + echo "hpcc_version=$(echo $community_tag | sed 's/community_//' | sed 's/-[0-9]$//')" >> $GITHUB_OUTPUT community_base_ref=${{ github.event.base_ref || github.ref }} candidate_branch=$(echo $community_base_ref | cut -d'/' -f3) echo "candidate_branch=$candidate_branch" >> $GITHUB_OUTPUT @@ -90,13 +92,11 @@ jobs: strategy: matrix: include: - - os: ubuntu-22.10 - os: ubuntu-22.04 - os: ubuntu-22.04 name: k8s container: true - os: ubuntu-20.04 - - os: ubuntu-18.04 - os: centos-8 - os: centos-7 cmake_options_extra: "" @@ -267,6 +267,14 @@ jobs: username: ${{ secrets.JFROG_USERNAME }} password: ${{ secrets.JFROG_PASSWORD }} + - name: Setup JFrog CLI (internal) + if: ${{ matrix.ln && matrix.container && github.repository_owner == 'hpcc-systems' }} + uses: jfrog/setup-jfrog-cli@v3 + env: + JF_URL: https://${{ secrets.JFROG_REGISTRY }} + JF_USER: ${{ secrets.JFROG_USERNAME }} + JF_PASSWORD: ${{ secrets.JFROG_PASSWORD }} + - name: CMake Packages (internal) if: ${{ matrix.ln && !matrix.container && !matrix.documentation }} run: | @@ -321,20 +329,27 @@ jobs: echo "$k8s_pkg_file" - name: Create Docker Image (internal) - uses: docker/build-push-action@v4 + uses: docker/build-push-action@v5 if: ${{ matrix.ln && matrix.container && !matrix.documentation }} with: builder: ${{ steps.buildx.outputs.name }} file: ${{ needs.preamble.outputs.folder_platform }}/dockerfiles/vcpkg/platform-core-${{ matrix.os }}/Dockerfile context: ${{ needs.preamble.outputs.folder_build }} - push: ${{ github.repository_owner == 'hpcc-systems' }} + push: false + load: true build-args: | PKG_FILE=${{ steps.ln-container.outputs.k8s_pkg_file }} tags: | - ${{ secrets.JFROG_REGISTRY || 'dummy.io' }}/hpccpl-docker-local/hpcc-platform/${{ matrix.os }}/platform-core-ln:${{ needs.preamble.outputs.internal_tag }} + ${{ secrets.JFROG_REGISTRY || 'dummy.io' }}/hpccpl-docker-local/platform-core-ln:${{ needs.preamble.outputs.hpcc_version }} cache-from: | type=registry,ref=hpccsystems/platform-core-${{ matrix.os }}:${{ needs.preamble.outputs.candidate_base_branch }} + - name: JFrog Docker Push and Publish + if: ${{ matrix.ln && matrix.container && !matrix.documentation && github.repository_owner == 'hpcc-systems' }} + run: | + jf docker push ${{ secrets.JFROG_REGISTRY || 'dummy.io' }}/hpccpl-docker-local/platform-core-ln:${{ needs.preamble.outputs.hpcc_version }} --build-name=platform-core-ln --build-number=${{ needs.preamble.outputs.hpcc_version }} --project=hpccpl + jf rt bp platform-core-ln ${{ needs.preamble.outputs.hpcc_version }} --project=hpccpl + # Common --- - name: Cleanup Environment if: always()