Skip to content

Commit 79a3b36

Browse files
Merge pull request #39 from unicef/fix/uncomment-image-publishing-code
Fix: Uncomment image publishing part
2 parents b4100a6 + f83714f commit 79a3b36

File tree

1 file changed

+11
-15
lines changed

1 file changed

+11
-15
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)