2023-02-08 12:37:55 +01:00
|
|
|
kind: pipeline
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build
|
|
|
|
image: node:latest
|
|
|
|
commands:
|
|
|
|
- sed -i '/"electron":/d' ./package.json
|
|
|
|
- sed -i '/"electron-builder":/d' ./package.json
|
|
|
|
- sed -i '/"express":/d' ./package.json
|
|
|
|
- npm install
|
2023-02-13 22:25:11 +01:00
|
|
|
- npm run build
|
|
|
|
|
|
|
|
- name: docker
|
|
|
|
image: docker
|
|
|
|
script:
|
2023-02-13 22:28:48 +01:00
|
|
|
- docker login code.anufrij.de -u "${my_registry}" -p "${DOCKERHUBPW}"
|
2023-02-13 22:25:11 +01:00
|
|
|
- echo "Building container image $container_image"
|
|
|
|
- docker build -t "${container_image}" .
|
|
|
|
- docker run "${container_image}"
|
|
|
|
- docker tag "${container_image}" "${my_registry}"/"${container_image}":"${env_tag}"
|
|
|
|
- docker push "${my_registry}"/"${container_image}":"${env_tag}"
|