#0000 - Implement CI/CD
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Guillaume "B.B." Van Hemmen 2023-11-04 16:42:10 +01:00
parent d7db74f489
commit aaa83e6c42
Signed by: GuillaumeHemmen
GPG key ID: 7921E64524F7EB35
2 changed files with 49 additions and 56 deletions

View file

@ -3,14 +3,12 @@ steps:
docker-build: docker-build:
image: woodpeckerci/plugin-docker-buildx image: woodpeckerci/plugin-docker-buildx
environment: environment:
- CI_TZ="Europe/Paris"
- CI_NODE_MAJOR=18
- CI_DEBIAN_VERSION=12 - CI_DEBIAN_VERSION=12
- CI_NODE_MAJOR=18
settings: settings:
build_args_from_env: build_args_from_env:
- CI_TZ - CI_TZ
- CI_NODE_MAJOR - CI_NODE_MAJOR
- CI_DEBIAN_VERSION
repo: git.van-hemmen.com/guillaumehemmen/debian-node-firebase repo: git.van-hemmen.com/guillaumehemmen/debian-node-firebase
tags: latest,debian_${CI_DEBIAN_VERSION}-node_${CI_NODE_MAJOR} tags: latest,debian_${CI_DEBIAN_VERSION}-node_${CI_NODE_MAJOR}
registry: git.van-hemmen.com registry: git.van-hemmen.com

View file

@ -1,57 +1,52 @@
ARG CI_TZ FROM debian:12
ARG CI_NODE_MAJOR
ARG CI_DEBIAN_VERSION
FROM debian:${CI_DEBIAN_VERSION}
LABEL maintainer="guillaume@van-hemmen.com" LABEL maintainer="guillaume@van-hemmen.com"
RUN echo "The value of CI_TZ is ${CI_TZ}" ARG ARG_TZ="Europe/Paris"
RUN echo "The value of CI_NODE_MAJOR is ${CI_NODE_MAJOR}" ARG ARG_NODE_MAJOR=18
RUN echo "The value of CI_DEBIAN_VERSION is ${CI_DEBIAN_VERSION}"
#RUN ln -snf /usr/share/zoneinfo/$CI_TZ /etc/localtime && echo $CI_TZ > /etc/timezone && \ RUN ln -snf /usr/share/zoneinfo/$CI_TZ /etc/localtime && echo $CI_TZ > /etc/timezone && \
# apt-get update && apt-get install -y ca-certificates curl gnupg && \ apt-get update && apt-get install -y ca-certificates curl gnupg && \
# mkdir -p /etc/apt/keyrings && \ mkdir -p /etc/apt/keyrings && \
# curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && \ curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && \
# echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_${CI_NODE_MAJOR}.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list && \ echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_${CI_NODE_MAJOR}.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list && \
# apt-get update && apt-get install -y nodejs sudo && \ apt-get update && apt-get install -y nodejs sudo && \
# apt-get install -y \ apt-get install -y \
# ca-certificates \ ca-certificates \
# fonts-liberation \ fonts-liberation \
# libappindicator3-1 \ libappindicator3-1 \
# libasound2 \ libasound2 \
# libatk-bridge2.0-0 \ libatk-bridge2.0-0 \
# libatk1.0-0 \ libatk1.0-0 \
# libc6 \ libc6 \
# libcairo2 \ libcairo2 \
# libcups2 \ libcups2 \
# libdbus-1-3 \ libdbus-1-3 \
# libexpat1 \ libexpat1 \
# libfontconfig1 \ libfontconfig1 \
# libgbm1 \ libgbm1 \
# libgcc1 \ libgcc1 \
# libglib2.0-0 \ libglib2.0-0 \
# libgtk-3-0 \ libgtk-3-0 \
# libnspr4 \ libnspr4 \
# libnss3 \ libnss3 \
# libpango-1.0-0 \ libpango-1.0-0 \
# libpangocairo-1.0-0 \ libpangocairo-1.0-0 \
# libstdc++6 \ libstdc++6 \
# libx11-6 \ libx11-6 \
# libx11-xcb1 \ libx11-xcb1 \
# libxcb1 \ libxcb1 \
# libxcomposite1 \ libxcomposite1 \
# libxcursor1 \ libxcursor1 \
# libxdamage1 \ libxdamage1 \
# libxext6 \ libxext6 \
# libxfixes3 \ libxfixes3 \
# libxi6 \ libxi6 \
# libxrandr2 \ libxrandr2 \
# libxrender1 \ libxrender1 \
# libxss1 \ libxss1 \
# libxtst6 \ libxtst6 \
# lsb-release \ lsb-release \
# wget wget
#
#RUN curl -sL firebase.tools | bash RUN curl -sL firebase.tools | bash