# HG changeset patch # User Florent Aide <florent.aide@gmail.com> # Date 1654098766 -7200 # Wed Jun 01 17:52:46 2022 +0200 # Node ID 4fd1b672157ea7c5775e8c1a3b701cf593daca5a # Parent 3a41220184cc04a7d7f55d9108efd282fa0107c0 CI: adding an artifact upload diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,6 +3,7 @@ - test - lint - build + - upload unit_tests: stage: test @@ -44,5 +45,17 @@ - .gopath/golangci-cache - .cache/gocache - tools/bin + - build script: - tools/bin/task build + +upload: + image: quay.orus.io/docker_mirror/alpine:3.10 + stage: upload + cache: + key: tooling + paths: + - build + script: + - apk add curl + - 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file build/beaver "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/beaver/latest/beaver"'