Skip to content

Commit

Permalink
chore: update docker-publish
Browse files Browse the repository at this point in the history
  • Loading branch information
xboard committed Feb 23, 2025
1 parent 08c12a7 commit 220d306
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-depth: 1

- name: Set up QEMU
uses: docker/setup-qemu-action@v3
Expand All @@ -33,10 +33,9 @@ jobs:
with:
platforms: linux/amd64,linux/arm64
driver-opts: |
image=moby/buildkit:master
image=moby/buildkit:v0.20.0
network=host
# Add free disk space
- name: Free Disk Space
run: |
sudo rm -rf /usr/share/dotnet
Expand Down Expand Up @@ -87,8 +86,7 @@ jobs:
${{ env.REGISTRY }}/${{ github.repository_owner }}/xboard:${{ steps.get_version.outputs.version }}
build-args: |
BUILDKIT_INLINE_CACHE=1
BUILDKIT_MULTI_PLATFORM=1
DOCKER_BUILDKIT=1
BUILDKIT_MULTI_PLATFORM=1
provenance: false
outputs: type=registry,push=true
allow: |
Expand All @@ -101,7 +99,5 @@ jobs:

- name: Sign image
if: steps.build-and-push.outputs.digest != ''
env:
COSIGN_EXPERIMENTAL: 1
run: |
echo "${{ steps.meta.outputs.tags }}" | xargs -I {} cosign sign --yes "{}@${{ steps.build-and-push.outputs.digest }}"
echo "${{ steps.meta.outputs.tags }}" | xargs -I {} cosign sign --yes "{}@${{ steps.build-and-push.outputs.digest }}"
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ COPY .docker /
# Add build argument for cache busting
ARG CACHEBUST=1
ARG REPO_URL=https://github.com/cedar2025/Xboard
RUN git clone --depth 2 ${REPO_URL} .
RUN git config --global --add safe.directory /www && \
echo "Cache bust: ${CACHEBUST}" && \
git clone --depth 1 ${REPO_URL} .

COPY .docker/supervisor/supervisord.conf /etc/supervisor/conf.d/supervisord.conf

Expand Down

0 comments on commit 220d306

Please sign in to comment.