diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index e499df4..aee7919 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -26,7 +26,7 @@ jobs: username: ${{ secrets.MYCO_REGISTRY_USER }} password: ${{ secrets.MYCO_PERSONAL_ACCESS_TOKEN }} - - name: Build and Push Extended Version + - name: Build and Push uses: docker/build-push-action@v4 with: builder: ${{ steps.buildx.outputs.name }} @@ -35,7 +35,7 @@ jobs: platforms: linux/amd64 push: true build-args: | - ZOLA_RELEASE_VERSION=v0.20.0 + ZOLA_VERSION=v0.20.0 tags: | fung.uy/mycosystems/zola-ci:latest fung.uy/mycosystems/zola-ci:0.20.0 diff --git a/Dockerfile b/Dockerfile index c806ce7..d3a94ac 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM rust:slim-bookworm AS builder ARG USE_GH_RELEASE=true -ARG ZOLA_RELEASE_VERSION=latest +ARG ZOLA_VERSION RUN apt-get update -y && \ apt-get install -y pkg-config make g++ libssl-dev curl jq tar gzip @@ -18,9 +18,8 @@ RUN if [ "${USE_GH_RELEASE}" = "true" ]; then \ RUN ./zola --version -FROM gcr.io/distroless/cc-debian12 +FROM docker.io/alpine:3.2 COPY --from=builder /app/zola /bin/zola -RUN apt-get update -y && \ - apt-get install rsync +RUN apk update && apk add --no-cache rsync ENTRYPOINT ["/bin/bash", "-l", "-c"]