Removed the files required by gitlab CI/CD. Gitea/drone CI/CD is working well for past several months.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-08-24 15:54:27 +08:00
parent c20fc7cd90
commit 2b0507899c
2 changed files with 0 additions and 81 deletions

View File

@@ -1,42 +0,0 @@
variables:
LATEST_VER: "22.04"
PLATFORMS: "linux/amd64,linux/arm64,linux/arm/v7"
build_22:
variables:
UBUNTU_VER: "22.04"
image: docker:23.0.1
stage: build
rules:
- changes:
- Dockerfile
- build_command.sh
- scripts/**/*
script:
- sh build_command.sh
build_20:
variables:
UBUNTU_VER: "20.04"
image: docker:23.0.1
stage: build
rules:
- changes:
- Dockerfile
- build_command.sh
- scripts/**/*
script:
- sh build_command.sh
build_18:
variables:
UBUNTU_VER: "18.04"
image: docker:23.0.1
stage: build
rules:
- changes:
- Dockerfile
- build_command.sh
- scripts/**/*
script:
- sh build_command.sh

View File

@@ -1,39 +0,0 @@
#!/usr/bin/env sh
set -x # For verbosity
set -o errexit # The following two causes the script to fail even if one command fail.
set -o pipefail
export BUILDER_NAME=`docker buildx create --use`
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
# Following only adds the :latest tag if it is the latest LTS version.
if [ "$LATEST_VER" = "$UBUNTU_VER" ];
then
docker buildx build . \
-f Dockerfile \
--build-arg UBUNTU_VER=$UBUNTU_VER \
-t $CI_REGISTRY_IMAGE/ubuntu-$UBUNTU_VER:`date "+%Y-%m-%d"` \
-t $CI_REGISTRY_IMAGE/ubuntu-$UBUNTU_VER:latest \
-t $CI_REGISTRY_IMAGE:$UBUNTU_VER \
--platform $PLATFORMS \
--cache-from type=local,src=/cache/$CI_PROJECT_PATH/ubuntu-$UBUNTU_VER \
--cache-to type=local,dest=/cache/$CI_PROJECT_PATH/ubuntu-$UBUNTU_VER,mode=max \
--push --provenance false
else
docker buildx build . \
-f Dockerfile \
--build-arg UBUNTU_VER=$UBUNTU_VER \
-t $CI_REGISTRY_IMAGE/ubuntu-$UBUNTU_VER:`date "+%Y-%m-%d"` \
-t $CI_REGISTRY_IMAGE/ubuntu-$UBUNTU_VER:latest \
-t $CI_REGISTRY_IMAGE:$UBUNTU_VER \
-t $CI_REGISTRY_IMAGE:latest \
--platform $PLATFORMS \
--cache-from type=local,src=/cache/$CI_PROJECT_PATH/ubuntu-$UBUNTU_VER \
--cache-to type=local,dest=/cache/$CI_PROJECT_PATH/ubuntu-$UBUNTU_VER,mode=max \
--push --provenance false
fi
docker buildx prune --builder $BUILDER_NAME -f
docker buildx stop $BUILDER_NAME
docker buildx rm $BUILDER_NAME