Skip to content
Snippets Groups Projects
Commit d615b583 authored by Yana Kernerman's avatar Yana Kernerman
Browse files

run all stages

parent c205ad62
No related branches found
No related tags found
1 merge request!1Define and run a pipeline
Pipeline #68256 passed
...@@ -18,35 +18,35 @@ job_test_the_code: ...@@ -18,35 +18,35 @@ job_test_the_code:
- go get -t ./... # Installs dependencies, including those for testing - go get -t ./... # Installs dependencies, including those for testing
- go test -race -v ./... # Run tests with race detection enabled - go test -race -v ./... # Run tests with race detection enabled
#job_build_artifact: job_build_artifact:
# stage: build stage: build
# rules: # Conditions under which this job should run rules: # Conditions under which this job should run
# - if: $CI_COMMIT_REF_NAME =~ /^.*$/ # Run this job for any branch or merge request event. - if: $CI_COMMIT_REF_NAME =~ /^.*$/ # Run this job for any branch or merge request event.
# when: always when: always
# image: registry.hub.docker.com/library/golang:1.21 image: registry.hub.docker.com/library/golang:1.21
# script: script:
# - go get -t ./... # Installs dependencies - go get -t ./... # Installs dependencies
# - go build -o ./artifact.bin ./*.go # Builds the Go application and outputs a binary named artifact.bin - go build -o ./artifact.bin ./*.go # Builds the Go application and outputs a binary named artifact.bin
# artifacts: artifacts:
# paths: # Specifies the paths to the files that are to be saved as artifacts after the job has been completed. paths: # Specifies the paths to the files that are to be saved as artifacts after the job has been completed.
# - ./artifact.bin - ./artifact.bin
# expire_in: 1 week expire_in: 1 week
#
#job_publish_artifact: job_publish_artifact:
# stage: publish stage: publish
# rules: # Conditions under which this job should run rules: # Conditions under which this job should run
# - if: $CI_COMMIT_REF_NAME =~ /^.*$/ # Run this job for any branch or merge request event. - if: $CI_COMMIT_REF_NAME =~ /^.*$/ # Run this job for any branch or merge request event.
# when: always when: always
# image: curlimages/curl:latest # Custom image with curl image: curlimages/curl:latest # Custom image with curl
# tags: tags:
# - docker-privileged - docker-privileged
# dependencies: dependencies:
# - job_build_artifact - job_build_artifact
# script: script:
# - echo "Publishing artifact..." - echo "Publishing artifact..."
# - | - |
# curl \ curl \
# --header "JOB-TOKEN: ${CI_JOB_TOKEN}" \ --header "JOB-TOKEN: ${CI_JOB_TOKEN}" \
# --upload-file ./artifact.bin \ --upload-file ./artifact.bin \
# "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/artifacts/${version}/webservice" "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/artifacts/${version}/webservice"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment