From 8f5dbf5bba4fc0f530e4cec6bf6a0cdb1d11af6f Mon Sep 17 00:00:00 2001 From: Viacheslav Bocharov Date: Mon, 23 Sep 2024 14:22:00 +0300 Subject: [PATCH] fix action.yaml for cr.jethome --- .github/actions/build-image/action.yaml | 26 +++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/.github/actions/build-image/action.yaml b/.github/actions/build-image/action.yaml index 7565097ec137..1612db4db45c 100644 --- a/.github/actions/build-image/action.yaml +++ b/.github/actions/build-image/action.yaml @@ -70,6 +70,32 @@ runs: digest="${{ steps.build-ghcr.outputs.digest }}" touch "/tmp/digests/${{ inputs.target }}/ghcr/${digest#sha256:}" + - name: Build and push to crjethome by digest + id: build-crjethome + uses: docker/build-push-action@v6.7.0 + env: + DOCKER_BUILD_SUMMARY: false + DOCKER_BUILD_RECORD_UPLOAD: false + with: + context: . + file: ./docker/Dockerfile + platforms: ${{ inputs.platform }} + target: ${{ inputs.target }} + cache-from: type=gha + cache-to: ${{ steps.cache-to.outputs.value }} + build-args: | + BASEIMGTYPE=${{ inputs.baseimg }} + BUILD_VERSION=${{ inputs.version }} + outputs: | + type=image,name=cr.jethome.work/${{ steps.tags.outputs.image_name }},push-by-digest=true,name-canonical=true,push=true + + - name: Export crjethome digests + shell: bash + run: | + mkdir -p /tmp/digests/${{ inputs.target }}/crjethome + digest="${{ steps.build-ghcr.outputs.digest }}" + touch "/tmp/digests/${{ inputs.target }}/crjethome/${digest#sha256:}" + - name: Build and push to dockerhub by digest if: 0 id: build-dockerhub