Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 23 additions & 8 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,14 @@ jobs:
outputs: type=image,name=${{ env.REGISTRY_FRONTEND_IMAGE }},push-by-digest=true,name-canonical=true,push=true

- name: Export digest
# run: |
# mkdir -p /tmp/digests
# digest="${{ steps.build.outputs.digest }}"
# touch "/tmp/digests/${digest#sha256:}"
run: |
mkdir -p /tmp/digests
digest="${{ steps.build.outputs.digest }}"
touch "/tmp/digests/${digest#sha256:}"
echo "${digest#sha256:}" > "/tmp/digests/${{ env.PLATFORM_PAIR }}"

- name: Upload digest
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -233,13 +237,24 @@ jobs:
- name: Create manifest list and push
working-directory: /tmp/digests
run: |
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
$(printf '${{ env.REGISTRY_FRONTEND_IMAGE }}@sha256:%s ' *) \

- name: Create manifest list and push 2
working-directory: /tmp/digests
run: |
docker buildx imagetools create --tag ${{ env.REGISTRY_FRONTEND_IMAGE }}:${{ env.FINAL_TAG }}
DIGEST_FILES=$(ls /tmp/digests/frontend-${{ matrix.configuration.build_configuration }}-digests-*)
if [[ -z "$DIGEST_FILES" ]]; then
echo "No digests found!"
exit 1
fi
DIGESTS=""
for digest in $DIGEST_FILES; do
DIGESTS="$DIGESTS ${{ env.REGISTRY_FRONTEND_IMAGE }}@sha256:$(cat $digest)"
done
docker buildx imagetools create --tag ${{ env.REGISTRY_FRONTEND_IMAGE }}:${{ env.FINAL_TAG }} $DIGESTS
# run: |
# docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
# $(printf '${{ env.REGISTRY_FRONTEND_IMAGE }}@sha256:%s ' *) \

# - name: Create manifest list and push 2
# working-directory: /tmp/digests
# run: |
# docker buildx imagetools create --tag ${{ env.REGISTRY_FRONTEND_IMAGE }}:${{ env.FINAL_TAG }}

- name: Inspect image
run: |
Expand Down
1 change: 1 addition & 0 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM node:18 AS BUILD_IMAGE
# Doesn't matter what we put here - it get's overwritten by the docker build command
ARG BUILD_CONFIGURATION=staging
WORKDIR /app
COPY . .
Expand Down
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "frontend",
"version": "0.8.9",
"version": "0.8.10",
"scripts": {
"install:deps": "npm install",
"start": "npm install && ng serve --configuration local --open",
Expand Down
Loading