From 58db89a4b328999abf3544d22de7c5c7bd1a3d2f Mon Sep 17 00:00:00 2001 From: Nicolas CARPi Date: Fri, 16 Aug 2024 21:22:15 +0200 Subject: [PATCH] now build only on tag --- .github/workflows/build_push_demo.yml | 4 ++-- Dockerfile | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build_push_demo.yml b/.github/workflows/build_push_demo.yml index d3f11aa..bd8cb3e 100644 --- a/.github/workflows/build_push_demo.yml +++ b/.github/workflows/build_push_demo.yml @@ -2,8 +2,8 @@ name: Build and publish demo image on: push: -# tags: -# - '*' + tags: + - '*' ## GITHUB_TOKEN authentication permissions: diff --git a/Dockerfile b/Dockerfile index bded7e0..b054466 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,7 @@ RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then ARCH=amd64; elif [ "$TARGETPL # build nginx with only the bare minimum of features or modules # Note: no need to chain the RUN commands here as it's a builder image and nothing will be kept -FROM alpine:3.19 as nginx-builder +FROM alpine:3.19 AS nginx-builder ENV NGINX_VERSION=1.26.1 # pin nginx modules versions @@ -121,7 +121,7 @@ USER root RUN make install # CRONIE BUILDER -FROM alpine:3.19 as cronie-builder +FROM alpine:3.19 AS cronie-builder ENV CRONIE_VERSION=1.5.7 # install dependencies RUN apk add --no-cache build-base libc-dev make gcc autoconf automake abuild musl-obstack-dev