From 2e9ecd793e0c25a7619a55297e53858790769bbc Mon Sep 17 00:00:00 2001 From: Artem Anufrij Date: Mon, 13 Feb 2023 22:25:11 +0100 Subject: [PATCH 1/4] =?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 From 1248244a631d042b74a7a20d5692e65cea4316a0 Mon Sep 17 00:00:00 2001 From: Artem Anufrij Date: Mon, 13 Feb 2023 22:28:48 +0100 Subject: [PATCH 2/4] =?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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 4a85c4a..7a913c5 100644 --- a/.drone.yml +++ b/.drone.yml @@ -14,7 +14,7 @@ steps: - name: docker image: docker script: - - docker login -u "${my_registry}" -p "${DOCKERHUBPW}" + - docker login code.anufrij.de -u "${my_registry}" -p "${DOCKERHUBPW}" - echo "Building container image $container_image" - docker build -t "${container_image}" . - docker run "${container_image}" From 0b59441fb3e0c7cded5588d1647cf9d485015f1c Mon Sep 17 00:00:00 2001 From: Artem Anufrij Date: Mon, 13 Feb 2023 22:37:20 +0100 Subject: [PATCH 3/4] =?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 | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.drone.yml b/.drone.yml index 7a913c5..6e8bb31 100644 --- a/.drone.yml +++ b/.drone.yml @@ -11,12 +11,7 @@ steps: - npm install - npm run build - - name: docker + - name: docker-build image: docker - script: - - docker login code.anufrij.de -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 + commands: + - docker build -t myimage:$DRONE_BUILD_NUMBER . \ No newline at end of file From 9e50d2f8b40a7023f92219e6faf573a62377c7c1 Mon Sep 17 00:00:00 2001 From: Artem Anufrij Date: Mon, 13 Feb 2023 22:38:32 +0100 Subject: [PATCH 4/4] =?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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 6e8bb31..b556a4f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -14,4 +14,4 @@ steps: - name: docker-build image: docker commands: - - docker build -t myimage:$DRONE_BUILD_NUMBER . \ No newline at end of file + - docker build -t myimage:$DRONE_BUILD_NUMBER ./docker \ No newline at end of file