make gitlab CI work for conduwuit

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-02-14 18:13:08 -05:00 committed by June
parent 63bb00d902
commit 5515d12edd

View file

@ -112,7 +112,6 @@ debian:x86_64-unknown-linux-gnu:
# See also `rust-toolchain.toml` # See also `rust-toolchain.toml`
image: rust:1.75.0 image: rust:1.75.0
script: script:
- apt-get update && apt-get install -y --no-install-recommends libclang-dev
- cargo install cargo-deb - cargo install cargo-deb
- cargo deb - cargo deb
@ -133,16 +132,16 @@ docker-publish:
services: services:
- docker:25.0.0-dind - docker:25.0.0-dind
variables: variables:
IMAGE_NAME: $CI_REGISTRY_IMAGE/matrix-conduit IMAGE_NAME: $CI_REGISTRY_IMAGE/conduwuit
IMAGE_SUFFIX_AMD64: amd64 IMAGE_SUFFIX_AMD64: amd64
IMAGE_SUFFIX_ARM64V8: arm64v8 IMAGE_SUFFIX_ARM64V8: arm64v8
before_script: before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
script: script:
- docker load -i oci-image-amd64.tar.gz - docker load -i oci-image-amd64.tar.gz
- IMAGE_ID_AMD64=$(docker images -q conduit:next) - IMAGE_ID_AMD64=$(docker images -q conduit:main)
- docker load -i oci-image-arm64v8.tar.gz - docker load -i oci-image-arm64v8.tar.gz
- IMAGE_ID_ARM64V8=$(docker images -q conduit:next) - IMAGE_ID_ARM64V8=$(docker images -q conduit:main)
# Tag and push the architecture specific images # Tag and push the architecture specific images
- docker tag $IMAGE_ID_AMD64 $IMAGE_NAME:$CI_COMMIT_SHA-$IMAGE_SUFFIX_AMD64 - docker tag $IMAGE_ID_AMD64 $IMAGE_NAME:$CI_COMMIT_SHA-$IMAGE_SUFFIX_AMD64
- docker tag $IMAGE_ID_ARM64V8 $IMAGE_NAME:$CI_COMMIT_SHA-$IMAGE_SUFFIX_ARM64V8 - docker tag $IMAGE_ID_ARM64V8 $IMAGE_NAME:$CI_COMMIT_SHA-$IMAGE_SUFFIX_ARM64V8
@ -164,6 +163,5 @@ docker-publish:
- oci-image:x86_64-unknown-linux-gnu - oci-image:x86_64-unknown-linux-gnu
- oci-image:aarch64-unknown-linux-musl - oci-image:aarch64-unknown-linux-musl
only: only:
- next - main
- master
- tags - tags