Update .gitlab-ci.yml file

This commit is contained in:
TC 2023-07-16 17:04:23 +00:00
parent e3d66b60e4
commit cbd8fb4e60

View File

@ -6,6 +6,7 @@ variables:
stages: stages:
- test - test
- build_packages
- distribute - distribute
#before_script: #before_script:
@ -24,26 +25,46 @@ test_amd64:
- earthly --ci +unit-tests-linux-amd64 - earthly --ci +unit-tests-linux-amd64
when: manual when: manual
package: package_amd64_deb:
stage: distribute stage: build_packages
only: only:
- stable - stable
tags: tags:
- build-server - build-amd64-deb
script: script:
- earthly bootstrap - earthly bootstrap
- earthly +package-linux-amd64-deb - earthly +package-linux-amd64-deb
- earthly +package-linux-arm64-deb #- /home/gitlab-runner/distribute-packages.sh
- earthly +package-linux-amd64-rpm
- /home/gitlab-runner/distribute-packages.sh
deploy_repos: package_arm64_deb:
stage: distribute stage: build_packages
only: only:
- stable - stable
needs: tags:
- package - build-arm64-deb
tags: script:
- repo-server - earthly bootstrap
script: - earthly +package-linux-arm64-deb
- /home/gitlab-runner/deploy-repo.sh #- /home/gitlab-runner/distribute-packages.sh
package_amd64_rpm:
stage: build_packages
only:
- stable
tags:
- build-amd64-rpm
script:
- earthly bootstrap
- earthly +package-linux-amd64-rpm
#- /home/gitlab-runner/distribute-packages.sh
#deploy_repos:
# stage: distribute
# only:
# - stable
# needs:
# - package
# tags:
# - repo-server
# script:
# - /home/gitlab-runner/deploy-repo.sh