From bc56d41fbe3e6f983299c3a7469dd7252790abb0 Mon Sep 17 00:00:00 2001 From: Traines Date: Wed, 18 Dec 2024 02:18:13 +0000 Subject: [PATCH] ci... --- .github/workflows/build.yml | 3 ++- Dockerfile | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index da1e16c7..c0234b1d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,7 +2,8 @@ name: Build NPM Package & Docker on: push: - branches: [ "release" ] + tags: + - 'v*' env: REGISTRY: ghcr.io diff --git a/Dockerfile b/Dockerfile index b9ab47b9..3be777df 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,6 @@ LABEL org.opencontainers.image.description="A clean REST API wrapping around the LABEL org.opencontainers.image.authors="Traines " LABEL org.opencontainers.image.documentation="https://github.com/public-transport/db-vendo-client" LABEL org.opencontainers.image.source="https://github.com/public-transport/db-vendo-client" -LABEL org.opencontainers.image.version="6.0.0" LABEL org.opencontainers.image.licenses="ISC" WORKDIR /app @@ -23,4 +22,4 @@ ENV PORT 3000 VOLUME /logs/ -CMD ["node", "api.js"] +CMD ["/bin/sh", "-c", "node api.js >> /logs/db-vendo.log 2>&1"]