diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 1c3fc65..e340847 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -57,7 +57,7 @@ jobs: uses: docker/build-push-action@v5 with: context: . - platforms: linux/amd64,linux/arm/v7 + platforms: linux/amd64,linux/arm64 push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.docker_meta.outputs.tags }} labels: ${{ steps.docker_meta.outputs.labels }} \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index a4df51d..81bc21e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,6 +22,6 @@ COPY . ./source RUN hugo -e generic --source=${PWD}/source --destination=${PWD}/build/generic # Final image -FROM --platform=${BUILDPLATFORM:-linux/amd64} nginx:stable-alpine3.17 +FROM --platform=${TARGETPLATFORM:-linux/amd64} nginx:stable-alpine3.17 COPY --from=build /opt/tbnl/build/generic /usr/share/nginx/html