client/.drone.yml
Artem Anufrij 2e9ecd793e
Some checks failed
continuous-integration/drone/push Build is failing
„.drone.yml“ ändern
2023-02-13 22:25:11 +01:00

22 lines
694 B
YAML

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
- npm run build
- name: docker
image: docker
script:
- docker login -u "${my_registry}" -p "${DOCKERHUBPW}"
- 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}"