chore change namespace in CI/CD
This commit is contained in:
@@ -147,7 +147,7 @@ vitest:
|
|||||||
e2e:
|
e2e:
|
||||||
stage: test
|
stage: test
|
||||||
except:
|
except:
|
||||||
- tags@framasoft/mobilizon
|
- tags@kaihuri/mobilizon
|
||||||
services:
|
services:
|
||||||
- name: postgis/postgis:16-3.4
|
- name: postgis/postgis:16-3.4
|
||||||
alias: postgres
|
alias: postgres
|
||||||
@@ -226,16 +226,16 @@ pages:
|
|||||||
build-docker-main:
|
build-docker-main:
|
||||||
<<: *docker
|
<<: *docker
|
||||||
rules:
|
rules:
|
||||||
- if: '$CI_PROJECT_NAMESPACE != "framasoft"'
|
- if: '$CI_PROJECT_NAMESPACE != "kaihuri"'
|
||||||
when: never
|
when: never
|
||||||
- if: '$CI_PIPELINE_SOURCE == "schedule" || $CI_PIPELINE_TRIGGERED == "true"'
|
- if: '$CI_PIPELINE_SOURCE == "schedule" || $CI_PIPELINE_TRIGGERED == "true"'
|
||||||
script:
|
script:
|
||||||
- docker buildx build --platform linux/amd64 -t framasoft/mobilizon:main -f docker/production/Dockerfile .
|
- docker buildx build --platform linux/amd64 -t kaihuri/mobilizon:main -f docker/production/Dockerfile .
|
||||||
|
|
||||||
build-docker-tag:
|
build-docker-tag:
|
||||||
<<: *docker
|
<<: *docker
|
||||||
rules: &release-tag-rules
|
rules: &release-tag-rules
|
||||||
- if: '$CI_PROJECT_NAMESPACE != "framasoft"'
|
- if: '$CI_PROJECT_NAMESPACE != "kaihuri"'
|
||||||
when: never
|
when: never
|
||||||
- if: $CI_COMMIT_TAG != null
|
- if: $CI_COMMIT_TAG != null
|
||||||
when: on_success
|
when: on_success
|
||||||
@@ -247,7 +247,7 @@ build-docker-tag:
|
|||||||
--platform linux/${ARCH}
|
--platform linux/${ARCH}
|
||||||
--provenance=false
|
--provenance=false
|
||||||
--build-arg="${ERL_FLAGS}"
|
--build-arg="${ERL_FLAGS}"
|
||||||
-t framasoft/mobilizon:${CI_COMMIT_TAG}-${ARCH}
|
-t kaihuri/mobilizon:${CI_COMMIT_TAG}-${ARCH}
|
||||||
-f docker/production/Dockerfile .
|
-f docker/production/Dockerfile .
|
||||||
parallel:
|
parallel:
|
||||||
matrix:
|
matrix:
|
||||||
@@ -261,16 +261,16 @@ docker-manifest-push:
|
|||||||
<<: *docker
|
<<: *docker
|
||||||
needs: ["build-docker-tag"]
|
needs: ["build-docker-tag"]
|
||||||
rules: &release-tag-rules
|
rules: &release-tag-rules
|
||||||
- if: '$CI_PROJECT_NAMESPACE != "framasoft"'
|
- if: '$CI_PROJECT_NAMESPACE != "kaihuri"'
|
||||||
when: never
|
when: never
|
||||||
- if: $CI_COMMIT_TAG != null
|
- if: $CI_COMMIT_TAG != null
|
||||||
when: on_success
|
when: on_success
|
||||||
script:
|
script:
|
||||||
- >
|
- >
|
||||||
docker manifest create framasoft/mobilizon:${CI_COMMIT_TAG}
|
docker manifest create kaihuri/mobilizon:${CI_COMMIT_TAG}
|
||||||
--amend framasoft/mobilizon:${CI_COMMIT_TAG}-amd64
|
--amend kaihuri/mobilizon:${CI_COMMIT_TAG}-amd64
|
||||||
--amend framasoft/mobilizon:${CI_COMMIT_TAG}-arm64
|
--amend kaihuri/mobilizon:${CI_COMMIT_TAG}-arm64
|
||||||
- docker manifest push --purge framasoft/mobilizon:${CI_COMMIT_TAG}
|
- docker manifest push --purge kaihuri/mobilizon:${CI_COMMIT_TAG}
|
||||||
|
|
||||||
###
|
###
|
||||||
# Simply creating an alias to the tag doesn't work:
|
# Simply creating an alias to the tag doesn't work:
|
||||||
@@ -281,14 +281,14 @@ docker-latest:
|
|||||||
<<: *docker
|
<<: *docker
|
||||||
needs: ["docker-manifest-push"]
|
needs: ["docker-manifest-push"]
|
||||||
rules: &release-tag-rules
|
rules: &release-tag-rules
|
||||||
- if: '$CI_PROJECT_NAMESPACE != "framasoft"'
|
- if: '$CI_PROJECT_NAMESPACE != "kaihuri"'
|
||||||
when: never
|
when: never
|
||||||
- if: $CI_COMMIT_TAG != null && $CI_COMMIT_TAG !~ /alpha|beta|rc/
|
- if: $CI_COMMIT_TAG != null && $CI_COMMIT_TAG !~ /alpha|beta|rc/
|
||||||
when: on_success
|
when: on_success
|
||||||
script:
|
script:
|
||||||
- echo docker manifest create framasoft/mobilizon:latest $(docker manifest inspect framasoft/mobilizon:$CI_COMMIT_TAG | jq '.manifests[] | .digest' | xargs -I {} echo framasoft/mobilizon@{})
|
- echo docker manifest create kaihuri/mobilizon:latest $(docker manifest inspect kaihuri/mobilizon:$CI_COMMIT_TAG | jq '.manifests[] | .digest' | xargs -I {} echo kaihuri/mobilizon@{})
|
||||||
- docker manifest create framasoft/mobilizon:latest $(docker manifest inspect framasoft/mobilizon:$CI_COMMIT_TAG | jq -r '.manifests[] | .digest' | xargs -I {} echo framasoft/mobilizon@{})
|
- docker manifest create kaihuri/mobilizon:latest $(docker manifest inspect kaihuri/mobilizon:$CI_COMMIT_TAG | jq -r '.manifests[] | .digest' | xargs -I {} echo kaihuri/mobilizon@{})
|
||||||
- docker manifest push --purge framasoft/mobilizon:latest
|
- docker manifest push --purge kaihuri/mobilizon:latest
|
||||||
|
|
||||||
# Packaging app for amd64
|
# Packaging app for amd64
|
||||||
package-app:
|
package-app:
|
||||||
@@ -313,7 +313,7 @@ package-app:
|
|||||||
- tar czf ${APP_ASSET} -C release mobilizon
|
- tar czf ${APP_ASSET} -C release mobilizon
|
||||||
- du -sh ${APP_ASSET}
|
- du -sh ${APP_ASSET}
|
||||||
only:
|
only:
|
||||||
- tags@framasoft/mobilizon
|
- tags@kaihuri/mobilizon
|
||||||
artifacts:
|
artifacts:
|
||||||
expire_in: 2 days
|
expire_in: 2 days
|
||||||
paths:
|
paths:
|
||||||
@@ -336,7 +336,7 @@ package-app-dev:
|
|||||||
variables: *release-variables
|
variables: *release-variables
|
||||||
script: *release-script
|
script: *release-script
|
||||||
except:
|
except:
|
||||||
- tags@framasoft/mobilizon
|
- tags@kaihuri/mobilizon
|
||||||
artifacts:
|
artifacts:
|
||||||
expire_in: 2 days
|
expire_in: 2 days
|
||||||
paths:
|
paths:
|
||||||
@@ -409,7 +409,7 @@ release-upload:
|
|||||||
variables:
|
variables:
|
||||||
APP_ASSET: "${CI_PROJECT_NAME}_${CI_COMMIT_REF_NAME}_${ARCH}.tar.gz"
|
APP_ASSET: "${CI_PROJECT_NAME}_${CI_COMMIT_REF_NAME}_${ARCH}.tar.gz"
|
||||||
rules:
|
rules:
|
||||||
- if: '$CI_PROJECT_NAMESPACE != "framasoft"'
|
- if: '$CI_PROJECT_NAMESPACE != "kaihuri"'
|
||||||
when: never
|
when: never
|
||||||
script:
|
script:
|
||||||
- eval `ssh-agent -s`
|
- eval `ssh-agent -s`
|
||||||
@@ -429,7 +429,7 @@ release-create:
|
|||||||
stage: deploy
|
stage: deploy
|
||||||
image: registry.gitlab.com/gitlab-org/release-cli:latest
|
image: registry.gitlab.com/gitlab-org/release-cli:latest
|
||||||
rules:
|
rules:
|
||||||
- if: '$CI_PROJECT_NAMESPACE != "framasoft"'
|
- if: '$CI_PROJECT_NAMESPACE != "kaihuri"'
|
||||||
when: never
|
when: never
|
||||||
variables:
|
variables:
|
||||||
APP_ASSET_AMD64: "${CI_PROJECT_NAME}_${CI_COMMIT_REF_NAME}_amd64.tar.gz"
|
APP_ASSET_AMD64: "${CI_PROJECT_NAME}_${CI_COMMIT_REF_NAME}_amd64.tar.gz"
|
||||||
|
|||||||
Reference in New Issue
Block a user