From 9bdea03bd9976a429592555b21245be8875871f2 Mon Sep 17 00:00:00 2001 From: QuantumEntangledAndy Date: Sun, 8 Jan 2023 20:45:12 +0700 Subject: [PATCH] Use path context --- .github/workflows/build.yml | 6 +----- Dockerfile | 4 ---- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5f1279e..f040cc7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -219,16 +219,12 @@ jobs: with: name: release-i386-buster path: linux/386 - - name: Check Content of Artifacts - run: | - ls - ls linux - ls linux/* - name: Push to Docker Hub if: ${{ steps.vars.outputs.HAS_SECRET_TOKEN }} uses: docker/build-push-action@v3 with: platforms: linux/amd64,linux/arm/v7,linux/arm64,linux/386 + context: . push: true file: Dockerfile tags: ${{ steps.tags.outputs.TAGS }} diff --git a/Dockerfile b/Dockerfile index c73e49d..cfdfb9c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,10 +13,6 @@ ENV DEBIAN_FRONTEND=noninteractive WORKDIR /usr/local/src/neolink COPY . /usr/local/src/neolink -RUN ls -RUN ls linux -RUN ls linux\* - # Build the main program or copy from artifact # hadolint ignore=DL3008 RUN echo "TARGETPLATFORM: ${TARGETPLATFORM}"; \