From 2e9ecd793e0c25a7619a55297e53858790769bbc Mon Sep 17 00:00:00 2001 From: Artem Anufrij Date: Mon, 13 Feb 2023 22:25:11 +0100 Subject: [PATCH] =?UTF-8?q?=E2=80=9E.drone.yml=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 0aa76ce..4a85c4a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -9,4 +9,14 @@ steps: - sed -i '/"electron-builder":/d' ./package.json - sed -i '/"express":/d' ./package.json - npm install - - npm run build \ No newline at end of file + - 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}" \ No newline at end of file