@@ -57,22 +57,18 @@ jobs:
5757 run : echo "version=${{ steps.meta.outputs.version }}rc" >> "$GITHUB_OUTPUT"
5858 - if : github.event_name == 'release' && github.event.action == 'published'
5959 run : echo "version=${{ steps.meta.outputs.version }}" >> "$GITHUB_OUTPUT"
60- - run : echo "Build ... unicef/hope-country-workspace:${{ steps.meta.outputs.version }}-${{ env.version }}"
61-
62- # if: github.event_name == 'release' && github.event.action == 'published'
63- #
60+ - if : github.event_name == 'release' && github.event.action == 'published'
61+ run : |
62+ echo "Build ... unicef/hope-country-workspace:${{ steps.meta.outputs.version }}-${{ env.version }}"
63+ docker build \
64+ --target dist \
65+ -t "unicef/hope-country-workspace:${{ steps.meta.outputs.version }}" \
66+ --cache-from "type=gha" \
67+ --cache-to "type=gha,mode=max" \
68+ -f docker/Dockerfile .
69+ docker push "unicef/hope-country-workspace:${{ steps.meta.outputs.version }}"
70+ docker inspect --format='{{index .Id}}' "unicef/hope-country-workspace:${{ steps.meta.outputs.version }}"
6471
65- # Build ... "unicef/hope-country-workspace:${{ steps.meta.outputs.version }}"
66- #
67- # docker build \
68- # --target dist \
69- # -t "unicef/hope-country-workspace:${{ steps.meta.outputs.version }}" \
70- # --cache-from "type=gha" \
71- # --cache-to "type=gha,mode=max" \
72- # -f docker/Dockerfile .
73- # docker push "unicef/hope-country-workspace:${{ steps.meta.outputs.version }}"
74- # docker inspect --format='{{index .Id}}' "unicef/hope-country-workspace:${{ steps.meta.outputs.version }}"
75- #
7672# - name: Generate artifact attestation
7773# uses: actions/attest-build-provenance@v1
7874# with:
0 commit comments