From 69129b703e79a50f1bb7ed191a4240e770f1028d Mon Sep 17 00:00:00 2001 From: Simon Date: Mon, 4 Oct 2021 18:11:03 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a7420fd..6c9000c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -15,10 +15,8 @@ stages: # List of stages for jobs, and their order of execution - build - - test - - deploy -build-job: # This job runs in the build stage, which runs first. +build-dev: # This job runs in the build stage, which runs first. stage: build tags: - buildx @@ -30,3 +28,21 @@ build-job: # This job runs in the build stage, which runs first. - echo "Compile complete." + only: + - master + +build-release: # This job runs in the build stage, which runs first. + stage: build + tags: + - buildx + script: + - echo "Compiling the code..." + - cd docker-configs + - docker buildx build --no-cache -f Dockerfile-proxy -t hacknix/freedmr:latest -t hacknix/$CI_COMMIT_TAG-with-proxy -t hacknix/freedmr:development-latest --platform linux/arm/v7,linux/amd64,linux/i386,linux/arm64 --push . + + + + - echo "Compile complete." + only: + - master + - tags