Update target platform
This commit is contained in:
1 parent
e045aaf876
commit
e5583e697a
2 files changed
+3
-2
No files matched your search
@@ -222,7 +222,7 @@ jobs:
|
||||
if: ${{ steps.vars.outputs.HAS_SECRET_TOKEN }}
|
||||
uses: docker/build-push-action@v3
|
||||
with:
|
||||
platforms: linux/amd64,linux/arm/v7,linux/arm/v6,linux/arm64
|
||||
platforms: linux/amd64,linux/arm/v7,linux/arm64,linux/386
|
||||
push: true
|
||||
file: Dockerfile
|
||||
tags: ${{ steps.tags.outputs.TAGS }}
|
||||
|
||||
+2
-1
@@ -22,7 +22,8 @@ WORKDIR /usr/local/src/neolink
|
||||
|
||||
# Build the main program or copy from github build ones
|
||||
COPY . /usr/local/src/neolink
|
||||
RUN if [ -f "${TARGETPLATFORM}/neolink" ]; then \
|
||||
RUN echo "TARGETPLATFORM; ${TARGETPLATFORM}"; \
|
||||
if [ -f "${TARGETPLATFORM}/neolink" ]; then \
|
||||
mkdir -p /usr/local/src/neolink/target/release/; \
|
||||
cp "${TARGETPLATFORM}/neolink" "/usr/local/src/neolink/target/release/neolink"; \
|
||||
else \
|
||||
|
||||
Reference in new issue
Block a user