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