Skip to content
Snippets Groups Projects
Verified Commit 11761410 authored by Olivier Benz's avatar Olivier Benz
Browse files

Update .gitlab-ci.yml

parent 0aca59a8
No related branches found
No related tags found
No related merge requests found
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
--userns host --userns host
--privileged --privileged
tonistiigi/binfmt tonistiigi/binfmt
--install ${ARCH} --install all
.pre: .pre:
image: quay.io/curl/curl:latest image: quay.io/curl/curl:latest
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
BUILDX_NO_DEFAULT_ATTESTATIONS: "true" BUILDX_NO_DEFAULT_ATTESTATIONS: "true"
before_script: before_script:
- *before-script-build - *before-script-build
retry: 1
.release: .release:
image: registry.gitlab.com/gitlab-org/release-cli:latest image: registry.gitlab.com/gitlab-org/release-cli:latest
...@@ -67,7 +68,7 @@ build:version-linux-arch: ...@@ -67,7 +68,7 @@ build:version-linux-arch:
--platform linux/${ARCH} --platform linux/${ARCH}
-v /tmp:/tmp -v /tmp:/tmp
-e VERSION=${CI_COMMIT_TAG#v} -e VERSION=${CI_COMMIT_TAG#v}
glcr.b-data.ch/coder/code-server-builder:${CI_COMMIT_TAG#v}-linux-${ARCH} glcr.b-data.ch/coder/code-server-builder:${CI_COMMIT_TAG#v}
- > - >
docker run docker run
-v /tmp:/tmp -v /tmp:/tmp
...@@ -104,10 +105,10 @@ release:version: ...@@ -104,10 +105,10 @@ release:version:
- job: build:version-linux-arch - job: build:version-linux-arch
artifacts: true artifacts: true
script: script:
- echo "running linux/$ARCH release for $CI_COMMIT_TAG" - echo "running release for $CI_COMMIT_TAG"
release: release:
name: "$CI_COMMIT_TAG (linux/${ARCH})" name: "$CI_COMMIT_TAG"
description: "Unofficial and untested build" description: "Unofficial and untested builds"
tag_name: "$CI_COMMIT_TAG" tag_name: "$CI_COMMIT_TAG"
ref: "$CI_COMMIT_SHA" ref: "$CI_COMMIT_SHA"
assets: assets:
...@@ -119,4 +120,4 @@ release:version: ...@@ -119,4 +120,4 @@ release:version:
- name: "code-server_${TAG}_${ARCH}.deb" - name: "code-server_${TAG}_${ARCH}.deb"
url: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/${CI_PROJECT_NAME}/${TAG}/code-server_${TAG}_${ARCH}.deb" url: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/${CI_PROJECT_NAME}/${TAG}/code-server_${TAG}_${ARCH}.deb"
rules: rules:
- if: $CI_COMMIT_TAG =~ /^v([[:digit:]]+\.)?([[:digit:]]+\.)?([[:digit:]]+)$/ && $CI_PIPELINE_TRIGGERED - if: $CI_COMMIT_TAG =~ /^v([[:digit:]]+\.)?([[:digit:]]+\.)?([[:digit:]]+)$/ && $CI_PIPELINE_TRIGGERED && $ARCH == "riscv64"
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