Skip to content

Commit

Permalink
ci: Debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
jimisola committed Aug 6, 2024
1 parent b4accf5 commit a6f62a5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/publish-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ jobs:
type=ref,event=pr
type=semver,pattern={{version}}
annotations: |
org.opencontainers.image.description=Container image that contains unoserver and libreoffice including large set of fonts for file format conversions
org.opencontainers.image.description="Container image that contains unoserver and LibreOffice including large set of fonts for file format conversions"
org.opencontainers.image.licenses=MIT
org.opencontainers.image.source=https://github.com/unoconv/unoserver-docker
env:
Expand Down Expand Up @@ -155,11 +155,20 @@ jobs:
- name: Create manifest list and push
working-directory: /tmp/digests
run: |
set +ex
docker buildx imagetools create \
$(echo $DOCKER_METADATA_OUTPUT_JSON | jq -cr '.tags | map("-t " + .) | join(" ")') \
$(echo $DOCKER_METADATA_OUTPUT_JSON | jq -r '.annotations | map("--annotation \"" + . + "\"") | join(" ")') \
$(printf '${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@sha256:%s ' *)
# - name: Create manifest list and push
# working-directory: /tmp/digests
# run: |
# docker buildx imagetools create \
# $(echo $DOCKER_METADATA_OUTPUT_JSON | jq -cr '.tags | map("-t " + .) | join(" ")') \
# $(echo $DOCKER_METADATA_OUTPUT_JSON | jq -r '.annotations | map("--annotation \"" + . + "\"") | join(" ")') \
# $(printf '${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@sha256:%s ' *)

- name: Inspect image
run: |
docker buildx imagetools inspect ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.version }}
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM --platform=$BUILDPLATFORM eclipse-temurin:21.0.2_13-jdk-alpine
FROM --platform=$BUILDPLATFORM eclipse-temurin:22.0.1_8-jdk-alpine

ARG BUILD_CONTEXT="build-context"
ARG UID=worker
Expand Down Expand Up @@ -45,9 +45,9 @@ RUN pip install --break-system-packages -U unoserver==${VERSION_UNOSERVER}
# setup supervisor
COPY --chown=${UID}:${GID} ${BUILD_CONTEXT} /
RUN chmod +x entrypoint.sh && \
# mkdir -p /var/log/supervisor && \
# chown ${UID}:${GID} /var/log/supervisor && \
# mkdir -p /var/run && \
# mkdir -p /var/log/supervisor && \
# chown ${UID}:${GID} /var/log/supervisor && \
# mkdir -p /var/run && \
chown -R ${UID}:0 /run && \
chmod -R g=u /run

Expand Down

0 comments on commit a6f62a5

Please sign in to comment.