Compare commits

...

2 Commits

Author SHA1 Message Date
215e2bc8c9 [tryhard] 2024-11-23 19:38:52 +01:00
92e3e1c361 [no] 2024-11-23 19:23:44 +01:00
4 changed files with 27 additions and 27 deletions

View File

@@ -7,7 +7,7 @@ on:
push:
tags:
# Be carefull, conflict with package-deb *.*.*, don't use more than on dot *.* (ex: 2.5-runner)
- '*-runner'
- '*-internal'
jobs:
build-and-push-internal:
@@ -37,11 +37,11 @@ jobs:
- name: login & push
run: |
echo "${{ secrets.PACKAGE_PUSH_REPO }}" | docker login -u ${{ vars.REPO_GITEA_USER }} --password-stdin ${{ vars.REGISTRY_DOCKER }}
docker images
export VERSION=$(echo "${{ gitea.ref_name }}" | cut -d '-' -f 1)
sleep 300
docker tag ${{ vars.DOCKER_IMAGE_NAME }} ${{ vars.REGISTRY_DOCKER }}/${{ vars.GIT_USER_REPO }}/${{ vars.DOCKER_IMAGE_NAME }}:$VERSION
docker tag ${{ vars.DOCKER_IMAGE_NAME }} ${{ vars.REGISTRY_DOCKER }}/${{ vars.GIT_USER_REPO }}/${{ vars.DOCKER_IMAGE_NAME }}:latest
docker images
echo "${{ vars.REGISTRY_DOCKER }}/${{ vars.GIT_USER_REPO }}/${{ vars.DOCKER_IMAGE_NAME }}:$VERSION"
docker push ${{ vars.REGISTRY_DOCKER }}/${{ vars.GIT_USER_REPO }}/${{ vars.DOCKER_IMAGE_NAME }}:$VERSION
docker push ${{ vars.REGISTRY_DOCKER }}/${{ vars.GIT_USER_REPO }}/${{ vars.DOCKER_IMAGE_NAME }}:latest

View File

@@ -10,7 +10,7 @@ env:
on:
push:
tags:
- '*-samplescript'
- '*-package'
jobs:
build-package-push-repo:

View File

@@ -4,7 +4,7 @@ on:
push:
tags:
# Be carefull, conflict with package-deb *.*.*, don't use more than on dot *.* (ex: 2.5-runner)
- '*-waf'
- '*-public'
env:
GIT_REPO: wafw00f

View File

@@ -2,29 +2,29 @@
# Container image that runs your code
FROM debian:bullseye
# ENV NODE_MAJOR 16
ENV NODE_MAJOR 16
# # install dependancies packages
# RUN apt-get update \
# && apt-get install -y curl \
# dnsutils \
# git \
# ca-certificates \
# gnupg
# install dependancies packages
RUN apt-get update \
&& apt-get install -y curl \
dnsutils \
git \
ca-certificates \
gnupg
# # NODE
# RUN install -m 0755 -d /etc/apt/keyrings
# RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
# RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
# NODE
RUN install -m 0755 -d /etc/apt/keyrings
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
# # DOCKER
# RUN curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
# RUN chmod a+r /etc/apt/keyrings/docker.gpg
# RUN echo "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
# DOCKER
RUN curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
RUN chmod a+r /etc/apt/keyrings/docker.gpg
RUN echo "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
# RUN apt-get update \
# && apt-get install -y nodejs \
# docker-ce \
# docker-ce-cli \
# containerd.io \
# docker-buildx-plugin
RUN apt-get update \
&& apt-get install -y nodejs \
docker-ce \
docker-ce-cli \
containerd.io \
docker-buildx-plugin